Skip to content

Commit d546291

Browse files
committed
append file - add in missing parameter
this call was setting `transform` to `true` and missing out the required `append` boolean value. Because of this uploads were sometimes failing. This changes the call to be `transform: false` and `append: true`.
1 parent acfb2f0 commit d546291

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ function appendFile(path: string, data: string | Array<number>, encoding?: strin
243243
return Promise.reject(addCode('EINVAL'), new TypeError(`"data" must be a String when encoding is "utf8" or "base64", but it is "${typeof data}"`));
244244
}
245245
else
246-
return ReactNativeBlobUtil.writeFile(path, encoding, data, true);
246+
return ReactNativeBlobUtil.writeFile(path, encoding, data, false, true);
247247
}
248248
}
249249

0 commit comments

Comments
 (0)