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

Appending files w/ URIs to FormData doesn't work if Network Inspect is enabled #722

Open
kmarple1 opened this issue Oct 6, 2022 · 0 comments

Comments

@kmarple1
Copy link

kmarple1 commented Oct 6, 2022

React Native Debugger app version: 0.13.0
React Native version: ^0.66.4
Platform: iOS
Is real device of platform: No
Operating System: macOS

This is a duplicate of #38, which was closed without resolution. Five years later, it still appears to be a problem.

The main problem is not that the debugger doesn't support inspecting these requests, but that it actively breaks them. Any time you append a file that includes a URI to FormData, it sends [Object object] instead of the binary file if network inspect is enabled. The only solution seems to be disabling network inspect.

This raises a warning in the debugger, the network doc it links to is extremely cryptic. The only mention of URIs is:

  • React Native FormData supports the uri property. You can use files from CameraRoll, but originalFormData isn't supported.

It seems this has been a problem since 2017, so it seems like it should at least have an open issue.

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

1 participant