Large file uploads Next.JS / Vercel
Answered
Sloth bear posted this in #help-forum
Sloth bearOP
Hi there.
What's the best way to do large file uploads in Next.JS app router and deployed to vercel. It appears that Vercel is blocking large file uploads from being uploaded to my S3.
I have a wasbi.com bucket and get a 403 when I deploy to vercel but not on local host and I cannot find any other solutions. My product is a file storage hosting site so it's pretty important for it to work.
we're using a presigned url and uploading directly from browser which works in localhost but not in vercel. All API keys are loaded in correctly
What's the best way to do large file uploads in Next.JS app router and deployed to vercel. It appears that Vercel is blocking large file uploads from being uploaded to my S3.
I have a wasbi.com bucket and get a 403 when I deploy to vercel but not on local host and I cannot find any other solutions. My product is a file storage hosting site so it's pretty important for it to work.
we're using a presigned url and uploading directly from browser which works in localhost but not in vercel. All API keys are loaded in correctly
6 Replies
Asian black bear
Are you sending the presigned URL to the client and having them post directly to S3?
Vercel doesn't do anything to block or impede that, so there is probably another problem
@Asian black bear Vercel doesn't do anything to block or impede that, so there is probably another problem
Sloth bearOP
ahh ok, thanks mina
yes we are btw
Sloth bearOP
we've tried multiple s3 solutions, they all work local but never on vercel
Sloth bearOP
fixed it, was something to do with a faulty env key
Answer