What is Nostr?
hzrd149 /
npub1ye5…knpr
2024-11-22 03:50:15
in reply to nevent1q…2g6w

hzrd149 on Nostr: no, the extension on the "GET /<sha256>" endpoint will always be optional. mainly ...

no, the extension on the "GET /<sha256>" endpoint will always be optional. mainly because its not important to the server, its mostly there just to allow the client to have a hint at file type so it can show an image / video / pdf viewer

Although I'm going to open a PR tomorrow to make the file extension required on the "url" field returned from the /upload /list and /mirror endpoints. since that field is intended to be used by the client and the client generally needs the file extension
Author Public Key
npub1ye5ptcxfyyxl5vjvdjar2ua3f0hynkjzpx552mu5snj3qmx5pzjscpknpr