question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What is the best way to upload large file (video)?

See original GitHub issue

Hi,

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:open
  • Created 4 years ago
  • Reactions:5
  • Comments:21 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
jamesaucodecommented, Dec 14, 2021

https://docs.amplify.aws/lib/storage/upload/q/platform/js/#pause-and-resume-uploads For larger files we now recommend using resumable upload

1reaction
walvekarnikhilcommented, Jan 10, 2021

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found