-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[Bug]: FormData not working when CapacitorHttp is enabled #7538
Comments
This issue needs more information before it can be addressed. In particular, the reporter needs to provide a minimal sample app that demonstrates the issue. If no sample app is provided within 15 days, the issue will be closed. |
@jcesarmobile I had the same issue after upgrading to capacitor 6, while creating a reproduction code, I noticed the error happened when I set the So on Capacitor 5 it works with the Reproduction: https://github.com/jongbonga/code-reproduction |
This might be related to #7518. The Android code is missing a fallback for when no boundary is provided which is implemented there. (There is also an example implementation as requested. At least after applying the fix, it will work again when manually providing the content-type header). |
jongbonga, michaelwolz, can you create a separate tickets for your issues? |
This comment was marked as abuse.
This comment was marked as abuse.
It looks like this issue didn't get the information it needed, so I'll close it for now. If I made a mistake, sorry! I am just a bot. Have a great day! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
Capacitor Version
Other API Details
No response
Platforms Affected
Current Behavior
when I use @capacitor/[email protected], CapacitorHttp works great, but after I upgrade @capacitor/core version to 6.1.0, when I upload file use formData, the request headers lost Content-Type: "multipart/form-data;" then upload failed.
Expected Behavior
version 6.1.0 should work as 5.7.5, auto add Content-Type: "multipart/form-data; boundary=--xxxxxxxxxxxxxx" to headers
Project Reproduction
no link
Additional Information
No response
The text was updated successfully, but these errors were encountered: