|
@@ -291,7 +291,10 @@ public class RNFetchBlobBody extends RequestBody{
|
291
|
291
|
FormField field = new FormField(form.getMap(i));
|
292
|
292
|
list.add(field);
|
293
|
293
|
String data = field.data;
|
294
|
|
- if (field.filename != null) {
|
|
294
|
+ if(data == null) {
|
|
295
|
+ RNFetchBlobUtils.emitWarningEvent("RNFetchBlob multipart request builder has found a field without `data` property, the field `"+ field.name +"` will be removed implicitly.");
|
|
296
|
+ }
|
|
297
|
+ else if (field.filename != null) {
|
295
|
298
|
// upload from storage
|
296
|
299
|
if (data.startsWith(RNFetchBlobConst.FILE_PREFIX)) {
|
297
|
300
|
String orgPath = data.substring(RNFetchBlobConst.FILE_PREFIX.length());
|