You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering whether I could (mis)use unstorage as a simple file upload server. I'd like to be able to upload raw, binary files (e.g. a PNG image), preferably as FormData, and then access them later with a simple GET request, e.g. from the browser or cURL. In the best case, unstorage would even guess the mime type from the file's ending and set the content-type header accordingly. But for now, I'd already be happy with a way to upload binary files via the built-in HTTP server without the content being serialized to text on the way.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
First of all, very cool project!
I was wondering whether I could (mis)use unstorage as a simple file upload server. I'd like to be able to upload raw, binary files (e.g. a PNG image), preferably as FormData, and then access them later with a simple
GET
request, e.g. from the browser or cURL. In the best case, unstorage would even guess the mime type from the file's ending and set thecontent-type
header accordingly. But for now, I'd already be happy with a way to upload binary files via the built-in HTTP server without the content being serialized to text on the way.Beta Was this translation helpful? Give feedback.
All reactions