From d5462913c800142cb145098922396bce54708af0 Mon Sep 17 00:00:00 2001 From: Simon Gough Date: Wed, 23 Mar 2022 17:54:01 +0000 Subject: [PATCH] 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`. --- fs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs.js b/fs.js index dfcaadbc8..359774dab 100644 --- a/fs.js +++ b/fs.js @@ -243,7 +243,7 @@ function appendFile(path: string, data: string | Array, encoding?: strin return Promise.reject(addCode('EINVAL'), new TypeError(`"data" must be a String when encoding is "utf8" or "base64", but it is "${typeof data}"`)); } else - return ReactNativeBlobUtil.writeFile(path, encoding, data, true); + return ReactNativeBlobUtil.writeFile(path, encoding, data, false, true); } }