Skip to content

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

@jongbonga

Description

@jongbonga

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions