-
Notifications
You must be signed in to change notification settings - Fork 24.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix FormData to properly handle appended arrays. (#32815)
Summary: The Array appended to FormData must be transmitted in the form of a string. However, it is treated as a file object and transmitted, because `typeof Array` is `'object'` too In network ```js form.append('array_name', ['a', 'b', 'c']) // Browser // Content-Disposition: form-data; name='array_name'; // a,b,c // ReactNative // Content-Disposition: form-data; name='array_name'; // ``` ## Changelog [General] [Fixed] - The Array appended to FormData is transmitted as a string Pull Request resolved: #32815 Test Plan: Added test case Reviewed By: lunaleaps Differential Revision: D33369594 Pulled By: charlesbdudley fbshipit-source-id: 0b5219a2c9f73cf16665dc417cceb4481428ad4e
- v0.78.0-rc.5
- v0.78.0-rc.4
- v0.78.0-rc.3
- v0.78.0-rc.2
- v0.78.0-rc.1
- v0.78.0-rc.0
- v0.77.1
- v0.77.0
- v0.77.0-rc.7
- v0.77.0-rc.6
- v0.77.0-rc.5
- v0.77.0-rc.4
- v0.77.0-rc.3
- v0.77.0-rc.2
- v0.77.0-rc.1
- v0.77.0-rc.0
- v0.76.7
- v0.76.6
- v0.76.5
- v0.76.4
- v0.76.3
- v0.76.2
- v0.76.1
- v0.76.0
- v0.76.0-rc.6
- v0.76.0-rc.5
- v0.76.0-rc.4
- v0.76.0-rc.3
- v0.76.0-rc.2
- v0.76.0-rc.1
- v0.76.0-rc.0
- v0.75.5
- v0.75.4
- v0.75.3
- v0.75.2
- v0.75.1
- v0.75.0
- v0.75.0-rc.7
- v0.75.0-rc.6
- v0.75.0-rc.5
- v0.75.0-rc.4
- v0.75.0-rc.3
- v0.75.0-rc.2
- v0.75.0-rc.1
- v0.75.0-rc.0
- v0.74.7
- v0.74.6
- v0.74.5
- v0.74.4
- v0.74.3
- v0.74.2
- v0.74.1
- v0.74.1-rc.0
- v0.74.0
- v0.74.0-rc.9
- v0.74.0-rc.8
- v0.74.0-rc.7
- v0.74.0-rc.6
- v0.74.0-rc.5
- v0.74.0-rc.4
- v0.74.0-rc.3
- v0.74.0-rc.2
- v0.74.0-rc.1
- v0.74.0-rc.0
- v0.73.11
- v0.73.10
- v0.73.9
- v0.73.8
- v0.73.7
- v0.73.6
- v0.73.5
- v0.73.4
- v0.73.3
- v0.73.2
- v0.73.1
- v0.73.0
- v0.73.0-rc.8
- v0.73.0-rc.7
- v0.73.0-rc.6
- v0.73.0-rc.5
- v0.73.0-rc.4
- v0.73.0-rc.3
- v0.73.0-rc.2
- v0.73.0-rc.1
- v0.73.0-rc.0
- v0.72.17
- v0.72.16
- v0.72.15
- v0.72.14
- v0.72.13
- v0.72.12
- v0.72.11
- v0.72.10
- v0.72.9
- v0.72.8
- v0.72.7
- v0.72.6
- v0.72.5
- v0.72.4
- v0.72.3
- v0.72.2
- v0.72.1
- v0.72.0
- v0.72.0-rc.6
- v0.72.0-rc.5
- v0.72.0-rc.4
- v0.72.0-rc.3
- v0.72.0-rc.2
- v0.72.0-rc.1
- v0.72.0-rc.0
- v0.71.19
- v0.71.18
- v0.71.17
- v0.71.16
- v0.71.15
- v0.71.14
- v0.71.13
- v0.71.12
- v0.71.11
- v0.71.10
- v0.71.9
- v0.71.8
- v0.71.7
- v0.71.6
- v0.71.5
- v0.71.4
- v0.71.3
- v0.71.2
- v0.71.1
- v0.71.0
- v0.71.0-rc.6
- v0.71.0-rc.5
- v0.71.0-rc.4
- v0.71.0-rc.3
- v0.71.0-rc.2
- v0.71.0-rc.1
- v0.71.0-rc.0
- v0.70.15
- v0.70.14
- v0.70.13
- v0.70.12
- v0.70.11
- v0.70.10
- v0.70.9
- v0.70.8
- v0.70.7
- v0.70.6
- v0.70.5
- v0.70.4
- v0.70.3
- v0.70.2
- v0.70.1
- v0.70.0
- v0.70.0-rc.4
- v0.70.0-rc.3
- v0.70.0-rc.2
- v0.70.0-rc.1
- v0.70.0-rc.0
- v0.69.12
- v0.69.11
- v0.69.10
- v0.69.9
- v0.69.8
- v0.69.7
- v0.69.6
- v0.69.5
- v0.69.4
- v0.69.3
- v0.69.2
- v0.69.1
- v0.69.0
- v0.69.0-rc.6
- v0.69.0-rc.5
- v0.69.0-rc.4
- v0.69.0-rc.3
- v0.69.0-rc.2
- v0.69.0-rc.1
- v0.69.0-rc.0
- latest
1 parent
1ca2c24
commit d2e8e7d
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters