react-native-chunk-upload icon indicating copy to clipboard operation
react-native-chunk-upload copied to clipboard

Memory error when uploading larger videos

Open ckyte31 opened this issue 4 years ago • 7 comments

Hey guys, right now I'm able to upload smaller videos with no issues but when I try to upload a larger video ( >1GB ) the app crashes and says "Terminated due to memory issue".

Is there a way around this? I've tried a few different chunk sizes but that didn't seem to help either.

Any help would be appreciated, thanks.

ckyte31 avatar Nov 10 '21 01:11 ckyte31

same to me.. the lib not works with large files ;//

mayander30 avatar Dec 10 '21 21:12 mayander30

yes i am also facing same error. unable to upload more then 400MB file. app crash

sunilhugenx avatar Sep 15 '22 08:09 sunilhugenx

yes i am also facing same error. unable to upload more then 400MB file. app crash

issue only appear on real device, it's working fine with simulator. i tested on iPhone7, iPhone8 physical device

sunilhugenx avatar Sep 15 '22 08:09 sunilhugenx

I could not found solution for this issue, I tried Amplify form AWS but it dos not works too.. for now I am using a upload in webview, it works for big files, but in android NO.

mayander30 avatar Sep 15 '22 12:09 mayander30

+1 There are other ways?

isllyend avatar Oct 17 '22 08:10 isllyend

+1

favaztechcurve avatar Jan 24 '24 16:01 favaztechcurve

It's crashing because this package reads the file to base64 in memory, then saves that base64 into new chunked files. It's extremely inefficient especially for larger files. Expect memory overflow

zgordon02 avatar Apr 25 '24 14:04 zgordon02