-
-
Notifications
You must be signed in to change notification settings - Fork 155
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
File sent as [object Object] in request payload #96
Comments
Strange. Maybe your |
Hmm I'm using the fetch polyfill that comes with react-native. Is it necessary to provide a separate FormData polyfill as well? How should I make sure my polyfills are suitable? |
I don't know! I don't use React Native. Maybe @giautm can help? |
Did you check the content of your files? It looks like it really has |
Alas, it is an actual image! 😅 |
If you use React Native Debugger, you have to know that it replaces RN's |
For now there is not much I can do to help; if more information comes to light we can investigate further and reopen 🙏 |
OMG @Outpunk thank you so much! One day to understand why all my upload requests were failing ..! |
@madyankin LIFE SAVER! @jaydenseric I will open a PR to document this |
Related issue comment: jaydenseric#96 (comment)
Hi, I'm trying to upload a file on React Native using
ReactNativeFile
like this:but in my request payload, the file gets set as
[object Object]
, like:Am I using
ReactNativeFile
incorrectly here? Why do I get[object Object]
?The text was updated successfully, but these errors were encountered: