-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
[Android] FormData does not support data URIs #25790
Comments
Same question, I need to send a memory data as A file. |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
This is still an issue |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
This is still an issue |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
This is still an issue |
This is still an issue :/ |
This is still an issue |
3 similar comments
This is still an issue |
This is still an issue |
This is still an issue |
This bug is over a year old. Is anyone from RN team considering solving this bug? |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
This is still an issue |
This is still an issue |
4 similar comments
This is still an issue |
This is still an issue |
This is still an issue |
This is still an issue |
This is still an issue |
2 similar comments
This is still an issue |
This is still an issue |
I'll work on this issue |
Same here |
React Native version: Expo 33 / React Native 0.59.8
Steps To Reproduce
formData.append
with a data URI as theuri
Describe what you expected to happen:
The request would succeed (as it does on iOS) but instead (on Android only), you get this error:
Snack: https://snack.expo.io/@maxholderc5/cd0ef5
It appears that the Android implementation assumes this will always be a file, but unless I've misunderstood, passing a data URI here should also be valid (at least, it seems to work on iOS).
A workaround for my specific scenario (in case it is helpful for others running into this) was to write a temporary file and provide its filepath instead of the data URI directly, e.g. with Expo:
The text was updated successfully, but these errors were encountered: