Matthew Oaxaca
34edf92cbf
Network/FormData typeof object allowing null
...
Summary:
Submitting PR in response to https://github.com/facebook/react-native/issues/12251
**Test plan (required)**
$formData = new FormData()
$formData.append('value', null)
Included Unit Tests
Closes https://github.com/facebook/react-native/pull/12253
Differential Revision: D4545291
Pulled By: lacker
fbshipit-source-id: 2780f24e1fe1e0d5be3bb12b64aa6cd9a20554bf
2017-02-10 13:30:48 -08:00
David Aurelio
94666f16c7
Auto-fix lint errors
...
Reviewed By: bestander
Differential Revision: D3683952
fbshipit-source-id: 9484d0b0e86859e8edaca0da1aa13a667f200905
2016-08-09 06:43:46 -07:00
Jeff Morrison
df46891dfe
v0.27.0: fbsource
...
Reviewed By: gabelevi
Differential Revision: D3421744
fbshipit-source-id: d72275fa70687a188c6175dbd193ab8d79d9051e
2016-06-13 14:28:25 -07:00
Aleksei Androsov
9e78a63f84
Remove double to string convertion in FormData
...
Summary:These convertions introduced by 2 different PRs
5061fde317
de392b5351
Closes https://github.com/facebook/react-native/pull/5815
Differential Revision: D3144703
fb-gh-sync-id: a483916bb7387a64d89f809ccfb35ecb9a065b1e
fbshipit-source-id: a483916bb7387a64d89f809ccfb35ecb9a065b1e
2016-04-06 09:01:30 -07:00
Aleksei Androsov
5061fde317
FormData can append only string or object with uri
...
Summary:
I fix FormData type checking.
Simple test case:
```js
var fd = new FormData();
// JS Error.
// Because all non-string values threaded as "blob"
fd.append('number', 1);
```
Closes https://github.com/facebook/react-native/pull/4390
Reviewed By: svcscm
Differential Revision: D2818377
Pulled By: nicklockwood
fb-gh-sync-id: 8b3f27476af21c5fd65b844034579372172ea73c
2016-01-12 03:25:33 -08:00
Oleg Lokhvitsky
de392b5351
Fix Network::FormData to support non-string, non-object values
...
Reviewed By: pvulgaris, nicklockwood
Differential Revision: D2805463
fb-gh-sync-id: 30e847760be1fe557497080adb8fa372f19f00c3
2016-01-08 11:42:32 -08:00
Gabe Levi
ca17ed3b50
Deploy v0.20.1
...
Reviewed By: mroch
Differential Revision: D2775901
fb-gh-sync-id: ef4fa402a930e4b5c82513dc5cc05553fa539116
2015-12-18 17:04:29 -08:00
Jesse Ruder
56fef9b622
Allow duplicate keys in FormData
...
Summary: Right now `FormData` doesn't allow duplicate keys and uses the last value set for a duplicate key. I tested this in Chrome:
```
var formData = new FormData();
formData.append('key', 'value1');
formData.append('key', 'value2');
var request = new XMLHttpRequest();
request.open("POST", serverUrl);
request.send(formData);
```
and the request has both 'value1' and 'value2'.
I removed the duplicate key check in `FormData`. If people want to build appending or disallow duplicate keys, they can build either on top of this.
Closes https://github.com/facebook/react-native/pull/3556
Reviewed By: svcscm
Differential Revision: D2566999
Pulled By: nicklockwood
fb-gh-sync-id: 580e52e69376ebe9693e39a386cc540802b6d94f
2015-10-21 15:18:40 -07:00
Krzysztof Magiera
67746fea2f
[ReactNative] Use FbHttp for handling http requests from React Native.
2015-08-18 09:12:40 -07:00
Philipp von Weitershausen
4bfeeaa90d
[ReactNative] Improve Flow definitions and code comments in XHR FormData polyfill
2015-07-29 20:03:57 -08:00
Nick Lockwood
f4bf80f3ea
[ReactNative] Allow uploading native files (e.g. photos) and FormData via XMLHttpRequest
2015-06-09 12:27:05 -08:00