Skip to content

[IOS] "fetch + FormData" create the Content-Type with a boundary wrapped with delimiter " #7564

@XuChangZJU

Description

@XuChangZJU

When I attempt to upload file using the fetch + FormData, Android plays well and IOS always fails. After monitoring the http request, I found that IOS creates the http request as follows:

100144153633240385

the boundary in the content-type is wrapped with delimiter "
and this is the android's:

712435250518463508

This is probably cause by the code in _react-native/Libraries/Network/RCTNetworking.m_line 117

https://github.com/facebook/react-native/blob/5723915eaacfd3d8a8a7165c550f1fb9316c15ad/Libraries/Network/RCTNetworking.m

Another little problem is that ios does not add "content-length" for each part.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions