pwm on Nostr: Relays not storing uploads as part of some in-band spec isn't a huge problem imo. All ...
Relays not storing uploads as part of some in-band spec isn't a huge problem imo.
All you need is
- protocol extension to designate a url as holding an attachment (NIP, not hard)
- clients to allow you to configure what you use as the uploader (nothing really that can be enforced, hard)
the second part is harder because fragmentation. Maybe not everyone decides to play nice and allow you to set the place you are uploading. HTTP is probably the lowest common denominator for uploading/downloading attachments.
I think relays optionally running an http upload endpoint would be really cool because you could distribute where you upload to across many different relays. Then add a NIP to discover which relays you know about offer this service. I think this would be ideal.
Published at
2023-03-02 15:36:05Event JSON
{
"id": "f472099b019571b4383e120eee56ba35afda1eaf996f3abdd0c2e929c40872bf",
"pubkey": "3baabe4d008648b5438bfe3180e3d443cbc36478fbabb65007099a96a1c56922",
"created_at": 1677771365,
"kind": 1,
"tags": [
[
"p",
"e9b30713f9c2cd216e96b392ca191f2024f2928d15e6bc6c8fa065aa76bfedf4"
],
[
"p",
"07342945766d6c82adf75b309fd33f94c7742b4988f279336213dc7707929281"
],
[
"e",
"1f81d3e2e6efdeb38f6f224f689abb39e155b4b2f7530300f4dce09f83e04939",
"wss://nos.lol",
"root"
],
[
"e",
"72cdfc1a6cc7247388b2044e97e720cc0a9baa46ee191368f58a972680493f8d",
"wss://nos.lol",
"reply"
]
],
"content": "Relays not storing uploads as part of some in-band spec isn't a huge problem imo.\nAll you need is\n- protocol extension to designate a url as holding an attachment (NIP, not hard)\n- clients to allow you to configure what you use as the uploader (nothing really that can be enforced, hard)\nthe second part is harder because fragmentation. Maybe not everyone decides to play nice and allow you to set the place you are uploading. HTTP is probably the lowest common denominator for uploading/downloading attachments.\nI think relays optionally running an http upload endpoint would be really cool because you could distribute where you upload to across many different relays. Then add a NIP to discover which relays you know about offer this service. I think this would be ideal.",
"sig": "367567c7c0adb5a4470daaf4a0696f80b2d49d5aac90bd032b2023c697114e4d59eb703a182f7905a50bdc1283023c9c359ea5c1b58b2970aed881f67e17beeb"
}