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

Cannot upload video from CameraRoll due to bug in React-Native IOS #42

Open
rickevry opened this issue Apr 23, 2017 · 3 comments
Open

Comments

@rickevry
Copy link

If you upload a video from an image-URL that you get from the CameraRoll, React will mix up the streams and the S3 file will be the first frame of the video (as an image), instead of the complete video.

I have run stat (react-native-fetch-blob) and can see that URL is correct and the file size is correct. (that is why I think React messes up the streams when you do the request to S3).

I will try to run another implementation of fetch to see if that works.

@rickevry
Copy link
Author

I have confirmed that something is wrong with XMLHttpRequest when you post video-files. My pull request shows that it works with an implementation of fetch.

@benjreinhart
Copy link
Owner

Hey @rickevry,

Thanks for looking into that, others have had that issue before. Definitely interested in fixing it, but one of the goals of this project was to have no native dependencies. react-native-fetch-blob does have native dependencies, so I would prefer to avoid using it. I have to imagine there is a way to get this working with regular fetch and/or XMLHttpRequest, and if not, I would think that the react native team should ideally provide support for file/blob uploads.

Thanks for digging into this!

@KlavierCat
Copy link

I run into this exact issue, @rickevry's PR #43 works for me, both on iOS and Android.

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

3 participants