Next.js Discord

Discord Forum

Ways to upload a 3GB file hosted on an external URL to Vercel Blob Storage

Unanswered
Yellowfin tuna posted this in #help-forum
Open in Discord
Yellowfin tunaOP
https://vercel.com/docs/storage/vercel-blob

The documentation on Vercel Blob Storage wrote about this. "An example of that would be a server-side fetch() request streaming the response to Vercel Blob."
Could anyone point me to any examples of how this could be done?
The only way, I can think of is to use Edge Functions to stream the response, then use Blob.put to upload it to Vercel Blob.
However, there are some issues with using edge functions from my implementation.
I can keep the edge function alive but if the receiver of the response disconnects then the edge function would stop running too.

0 Replies