Skip to content

fix: formData upload broken in debug builds#56406

Open
riteshshukla04 wants to merge 1 commit intofacebook:mainfrom
riteshshukla04:ritesh/formDatafix
Open

fix: formData upload broken in debug builds#56406
riteshshukla04 wants to merge 1 commit intofacebook:mainfrom
riteshshukla04:ritesh/formDatafix

Conversation

@riteshshukla04
Copy link
Copy Markdown
Contributor

@riteshshukla04 riteshshukla04 commented Apr 9, 2026

Summary:

So the formData Upload in fetch is broken on 0.85 on main.
I tracked down this PR #55456
Also reported here #56404
RCA:-

body.isOneShot()                                                                                                                                                          
body.writeTo(buffer)  // This is  draining inner file InputStreams   

Fix is to walk to each children of multipart and check for Oneshot

Changelog:

[ANDROID][FIXED] - FormData uploads broken in debug builds

Test Plan:

Tested on RN tester
image

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Apr 9, 2026
@facebook-github-tools facebook-github-tools bot added the Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team. label Apr 9, 2026
@meta-codesync
Copy link
Copy Markdown

meta-codesync bot commented Apr 10, 2026

@alanleedev has imported this pull request. If you are a Meta employee, you can view this in D100258994.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Shared with Meta Applied via automation to indicate that an Issue or Pull Request has been shared with the team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant