pingdotgg / uploadthing

File uploads for modern web devs
https://uploadthing.com
MIT License
3.95k stars 285 forks source link

feat: Server upload file from ReadableStream or similar (instead of loading the complete file into memory) #538

Open Martoxdlol opened 8 months ago

Martoxdlol commented 8 months ago

Describe the feature you'd like to request

Upload file from a stream (like ReadableStream) at server side. I want to be able to upload a large file from a stream so I don't need it to be fully loaded into memory. Also, I want to know the upload progress, with this I will be able to do it.

Describe the solution you'd like to see

A option to provide some kind of stream instead of only a Blob with all the content loaded in it.

Additional information

No response

๐Ÿ‘จโ€๐Ÿ‘งโ€๐Ÿ‘ฆ Contributing

juliusmarminge commented 8 months ago

I think we've talked about this and want to add it in the future ๐Ÿ‘๐Ÿผ

akarabach commented 4 months ago

I would like to see a readstream as well, it will be possible to use uploadthing as google drive or as video streaming platform since download traffic is unlimited