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

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

siiiiilvio
Copy link
Contributor

@siiiiilvio siiiiilvio commented Sep 27, 2022

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 #265)

Checklist

  • I have tested this on a device and a simulator
  • I added the documentation in README.md
  • I updated the typed files (TS and Flow)
  • I've added Detox End-to-End Test(s)
  • I've created a snack to demonstrate the changes: LINK HERE

Add responseHeaders to CompletedData type.
Add responseHeaders for iOS
Add iOS support for responseHeaders
@siiiiilvio siiiiilvio changed the title Siiiiilvio patch 1 Add responseHeaders to the data object when upload is completed Sep 27, 2022
@jkerb8
Copy link

jkerb8 commented Feb 8, 2023

Any chance this gets merged? Needed for multipart uploads to an S3 bucket on iOS. Seems to already work on 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

Successfully merging this pull request may close these issues.

2 participants