What is the best way to upload large file (video)?
See original GitHub issueHi,
I’m using Storage.put
to upload video files to S3 but the app crashes if file size is large. Here is the code:
const fileData = await RNFetchBlob.fs.readFile(videoUri, 'base64')
const buffer = new Buffer(fileData, 'base64')
Storage.put(fileName, buffer, ...)
Does amplify support multi-part upload yet? If not, what’s the workaround?
Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:5
- Comments:21 (5 by maintainers)
Top Results From Across the Web
How To Send Large Video Files In 2023 - MASV
1. MASV – An Accelerated Large File Transfer Tool. One of the best ways to send large video files is with MASV —...
Read more >15 Easy Ways to Send Large Video Files in 2022 (via Desktop ...
7 Proven ways to send large video files from desktop · 1. Google Drive · 2. WeTransfer · 3. Jumpshare · 4. Sendy...
Read more >The 9 Best Ways to Send Large Files - HubSpot Blog
Using a cloud storage space like Google Drive, Dropbox, or OneDrive is one of the easiest and most popular methods for sending large...
Read more >11 Best Ways to Transfer, Share or Send Large Files in 2022
Uploading files to cloud storage is a great way to transfer large files such as photos and video. Popular cloud service providers like ......
Read more >How to send large video files (through iPhone, email, and more!)
Uploading your video to a video hosting site like Vimeo is one of the easiest ways to share large video files without compromising...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
https://docs.amplify.aws/lib/storage/upload/q/platform/js/#pause-and-resume-uploads For larger files we now recommend using resumable upload
Storage.put
supports Managed upload, splitting the file into chunks and uploading into batches. But the problem here is, to call Storage.put we have to pass the blog, which means we have read the full file. Reading full file causes out of memory issues and the app crashes. Here is one solution which I built & tried. https://dev.to/walvekarnikhil/reactnative-large-file-upload-using-amplify-s3-17ho