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
- Loading branch information