joltup / rn-fetch-blob

A project committed to making file access and data transfer easier, efficient for React Native developers.
MIT License
2.84k stars 784 forks source link

.then() cant callback when plateform #627

Open skyliwq opened 4 years ago

skyliwq commented 4 years ago

"react-native": "^0.62.2", "rn-fetch-blob": "^0.12.0",

.then() cant callback when plateform IOS RNFetchBlob.fetch( 'POST', url + 'users/avatar', { Authorization: 'Bearer access-token', 'Content-Type': 'multipart/form-data', }, [ { name: 'file', filename: 'idcard.png', type: mime, data: RNFetchBlob.wrap(path), }, ], ) .then((resp) => { console.log(resp); // ... }) .catch((err) => { // ... });