Vydia / react-native-background-upload

Upload files in your React Native app even while it's backgrounded. Supports Android and iOS, including camera roll assets.
MIT License
720 stars 325 forks source link

Add responseHeaders to the data object when upload is completed #313

Open siiiiilvio opened 1 year ago

siiiiilvio commented 1 year ago

Summary

When using your this library with your own multipart uploader, you may need some additional information from the response such as Etag headers from Amazon S3.

Test Plan

When the response is valid, populate the responseHeaders with the response headers using allHeaderFields.

What's required for testing (prerequisites)?

Test completed, cancelled and error scenarios.

What are the steps to reproduce (after prerequisites)?

When upload is completed, inspect the data object with the nested responseHeaders object.

Compatibility

| iOS | ✅
| Android | ✅ (Already implemented by https://github.com/Vydia/react-native-background-upload/pull/265)

Checklist

jkerb8 commented 1 year ago

Any chance this gets merged? Needed for multipart uploads to an S3 bucket on iOS. Seems to already work on android.