Next.js Discord

Discord Forum

does Vercel Blob Support pre-signed url ?

Unanswered
Dwarf Crocodile posted this in #help-forum
Open in Discord
Dwarf CrocodileOP
(I make it clear that English is not my first language)

now I want to upload large size video file on client-side because Vercel Serverless function does not support uploading files that is larger than 4.5MB.

I read some tutorial by using Vercel Blob. but every tutorial I saw does not use pre-signed url that is sent by server-side to client-side.

I need this feature because without pre-signed url, client side can do file upload attack (I don't know much about hacking, but I've heard there's such an attack )

Someone's little hint is a great help to me. thank you

4 Replies

Basenji
Yes. I think this should walk you through it: https://vercel.com/guides/how-to-upload-and-store-files-with-vercel
Dwarf CrocodileOP
@Basenji thank you for your answer. I already read the article you mentioned. in this article, pre-signed url is explained but in this context, only S3 supports pre-signed url . It maybe my mistake, but I have no clue about how to use pre-signed url with Vercel Blob. anyway, I really appreciate your answer.
Basenji
Sorry I think I misspoke. What Blob uses are not presigned urls but are unique difficult guess urls you may be interested in this conversation here: https://github.com/vercel/storage/issues/544
Idk if you read this as well, but this explains the approach: https://vercel.com/docs/storage/vercel-blob#security