Uploading large file using next api with edge runtime
Answered
Giant panda posted this in #help-forum
Giant pandaOP
Hello, I just want to ask. I need to upload large file to S3 through api route in edge runtime. I researched before and seem edge runtime not allowing big request body.
Anyone got any idea how to do this?
Anyone got any idea how to do this?
Answered by riský
Iirc S3 has a way of giving a link to the user to upload directly to the bucket: https://aws.amazon.com/blogs/compute/uploading-to-amazon-s3-directly-from-a-web-or-mobile-application/
2 Replies
Iirc S3 has a way of giving a link to the user to upload directly to the bucket: https://aws.amazon.com/blogs/compute/uploading-to-amazon-s3-directly-from-a-web-or-mobile-application/
Answer
Giant pandaOP
I see, thank you for giving me this article. I will upload my web app in hosting like netlify/cloudflare. So many of them will use edge runtime as their runtime to support next ssr.
Edge runtime really give me headache, I can use vercel but I need edge runtime for requirement.
Edge runtime really give me headache, I can use vercel but I need edge runtime for requirement.