Improve Large File Upload Speed? #653
Unanswered
colemilne54
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Stack:
Next 14 (App Router) (Free Vercel Plan)
Supabase (Paid Plan)
I have users experiencing slow upload speeds on our public facing form.
We collect info from the user along with up to 5 videos and pictures (each up to 500 mb). Currently we are looping through the files, uploading with standard supabase storage upload and then taking the returned UUID file paths and submitting it to our DB alongside the non-file form info filled out.
While users aren't maxing this out, we are seeing 200-300 mb videos being uploaded and these users are experiencing slow speeds.
These file sizes are over the limits for server actions body size, route handler body size, and Supabase edge function worker memory.
Given this I wanted to try uploading the large files directly from the browser/client using S3 multipart with supabase storage. To so securely and not expose my s3 secret access key I've been trying to use presigned upload urls. I am not getting this to work. Do I need to presign every part/ chunk that's uploaded? If so I think this solution could be counter intuitive to my performance needs.
Do resumable uploads improve performance or is it more of a UX frill? What are my options here?
Beta Was this translation helpful? Give feedback.
All reactions