hzrd149 / blossom

Blobs stored simply on mediaservers
The Unlicense
55 stars 6 forks source link

Mirroring blobs #17

Closed hzrd149 closed 2 weeks ago

hzrd149 commented 3 weeks ago

This PR defines an optional /mirror endpoint that can be used to tell a server where to download the blob instead of the client uploading it

pablof7z commented 3 weeks ago

I think this might be better as a a separate endpoint; feels like overloading /upload and it’s semantically a bit weird “use /upload?url to fetch a file instead of uploading it yourself”

Something like a POST /fetch or something

In general I think query strings outside of GETs are a bit of a code smell