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

Question: How to upload with Multipart? #265

Closed
2 tasks done
kusche12 opened this issue Jan 25, 2024 · 3 comments
Closed
2 tasks done

Question: How to upload with Multipart? #265

kusche12 opened this issue Jan 25, 2024 · 3 comments

Comments

@kusche12
Copy link

Current behavior

The documentation mentions that we can use backgroundUpload() with upload type MULTIPART. I've never seen a Multipart upload solution that works with a single endpoint URL, so I am curious to learn more.

Can someone explain to me what I need to do to get a single S3 URL that I can use in this function? My app currently uses a Presigned S3 URL for a single video upload, but this URL does not work when uploadType is set to Multipart.

Expected behavior

I pass a single S3 Presigned URL, my file path, and uploadType === Multipart, and react-native-compressor will handle the multi-part upload in the background.

Platform

  • Android
  • iOS

React Native Version

0.73.2

React Native Compressor Version

1.82.23

Reproducible Steps And Demo

Copy link

👋 @kusche12
Thanks for opening your issue here! If you find this package useful hit the star🌟!

@numandev1
Copy link
Owner

@kusche12 sorry for the late reply, this is how you can use multipart request

const result = await backgroundUpload(

@kusche12
Copy link
Author

@numandev1 that looks good to me. I think I just need to change the policies in my S3 bucket to allow Multipart permissions, closing for now!

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

2 participants