I am having some issues translating ‘-F’ in curl to something in react-native-fetch-blob when doing an upload. The API does not call for additional headers as shown in the example but rather a file and information about that file. Is there a way to translate this curl command into something that RNFetchBlob can process?
Curl Command:
curl -X POST https://something./api/uploadFile/
-F file[]=@newfile.jpg \
-F name[]=tester \
I am having some issues translating ‘-F’ in curl to something in react-native-fetch-blob when doing an upload. The API does not call for additional headers as shown in the example but rather a file and information about that file. Is there a way to translate this curl command into something that RNFetchBlob can process?
Curl Command:
RNFetchBlob Command:
React-Native version: 0.50.3 RNFetchBlob version:0.10.8