Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video uploads larger than ~100MB fail on iOS #53

Closed
card-b opened this issue Jan 2, 2018 · 6 comments
Closed

Video uploads larger than ~100MB fail on iOS #53

card-b opened this issue Jan 2, 2018 · 6 comments

Comments

@card-b
Copy link

card-b commented Jan 2, 2018

I keep running into this issue on iOS when uploading a video. Videos of any size longer than about 100mb consistently fail, with the message "Lost connection to background transfer service". Under that size they seem to work fine, but larger files fail before getting to the progress phase.

@TSMMark
Copy link
Contributor

TSMMark commented Jan 2, 2018

Hi, please make sure your server is configured to support file uploads larger than the size you mentioned

@TSMMark TSMMark closed this as completed Jan 2, 2018
@card-b
Copy link
Author

card-b commented Jan 2, 2018

It is, uploads > 2GB are supported on the web platform and succeed just fine. Non-background uploads > 100MB succeed using other packages (such as react-native-fetch-blob) also succeed but don't work in the background. This is definitely not a server-side issue.

@mlasy
Copy link

mlasy commented Jan 3, 2018

not a solution, but maybe a workaround: i had the same issue, what i did was to reduce the videoquality. 100mb of recorded video are very large and consumes the mobile data of the user in no time.
(you're using react-native-camera? -> captureQuality: Camera.constants.CaptureQuality.low).

@cristianoccazinsp
Copy link

Trying to debug this as well, but large files don't seem to be uploading successfully.

@jkerb8
Copy link

jkerb8 commented Jul 17, 2020

Did you guys ever determine how to fix this issue? I'm running into the same problem with video uploads. Unfortunately, dropping the quality below 720p isn't an option for me. I can also confirm that it is not a server-side problem.

@cristianoccazinsp
Copy link

I wasn't able to fix it. The only way around it seems to not use a multipart upload, but rather a plain file upload. This way the file is read directly from the file system on the native side and it doesn't need to be loaded into memory.

kasterlod added a commit to kasterlod/react-native-background-upload that referenced this issue May 6, 2021
reime005 pushed a commit that referenced this issue May 6, 2021
* Video uploads larger than ~100MB fail on iOS

Closes #172 #149 #53 #93
github-actions bot pushed a commit that referenced this issue May 6, 2021
## [6.2.4](v6.2.3...v6.2.4) (2021-05-06)

### Bug Fixes

* video uploads larger than ~100MB fail on iOS ([#239](#239)) ([d5798e0](d5798e0)), closes [#172](#172) [#149](#149) [#53](#53) [#93](#93)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants