uploadthing icon indicating copy to clipboard operation
uploadthing copied to clipboard

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

Open Martoxdlol opened this issue 1 year ago โ€ข 2 comments

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

  • [ ] ๐Ÿ™‹โ€โ™‚๏ธ Yes, I'd be down to file a PR implementing this feature!

Martoxdlol avatar Jan 07 '24 19:01 Martoxdlol

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

juliusmarminge avatar Jan 08 '24 09:01 juliusmarminge

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

akarabach avatar Apr 29 '24 09:04 akarabach