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

[Bug]: http request break on Android when sending formData #7589

Open
1 of 3 tasks
jongbonga opened this issue Jul 29, 2024 · 3 comments
Open
1 of 3 tasks

[Bug]: http request break on Android when sending formData #7589

jongbonga opened this issue Jul 29, 2024 · 3 comments
Labels
plugin: http type: bug A confirmed bug report

Comments

@jongbonga
Copy link

jongbonga commented Jul 29, 2024

Capacitor Version

💊   Capacitor Doctor  💊 

Latest Dependencies:

  @capacitor/cli: 6.1.1
  @capacitor/core: 6.1.1
  @capacitor/android: 6.1.1
  @capacitor/ios: 6.1.1

Installed Dependencies:

  @capacitor/cli: 6.1.1
  @capacitor/core: 6.1.1
  @capacitor/ios: 6.1.1
  @capacitor/android: 6.1.1

Other API Details

npm -v 10.7.0
node -v v18.20.4

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

on Capacitor 5 sending formData with CapacitorHttp enabled on config and content-type: 'multipart/form-data' hard-coded in the headers works fine, it fails on Capacitor 6

Expected Behavior

it should work with content-type: 'multipart/form-data' or documented somewhere

Project Reproduction

https://github.com/jongbonga/code-reproduction

Additional Information

There is a PR for the issue here

Copy link

ionitron-bot bot commented Aug 27, 2024

This issue has been labeled as type: bug. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.

@ionitron-bot ionitron-bot bot removed the triage label Aug 27, 2024
@grzegorzCieslik95
Copy link

The same:

5.5.1 -> my express service got content type content-type’: ‘multipart/form-data as default
6.0.1 -> i got content-type': 'application/x-www-form-urlencoded without file in data

Any idea how can i fix this?

@jcesarmobile
Copy link
Member

please, report a new issue, that seems like a different problem

@ionic-team ionic-team locked as off-topic and limited conversation to collaborators Aug 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
plugin: http type: bug A confirmed bug report
Projects
None yet
Development

No branches or pull requests

3 participants