title: RNFS.upload gives unexpected end of stream error while I want to send files in the device to my server
body: <p>I am Using react-native-fs for sending the files I picked by react-native-document-picker.
  so I make a function and call it when all the required files are selected like the code below.
  <a href="https://i.stack.imgur.com/nJ3yu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nJ3yu.png" alt="enter image description here"></a>
  and when I call the function <code>uploadImageReq()</code> I got the following error on console</p>
  
  <pre><code>ERROR Error: unexpected end of stream
      at Object.promiseMethodWrapper [as uploadFiles] (NativeModules.js:103)
      at Object.uploadFiles (FS.common.js:594)
      at uploadImageReq$ (AddScreen.js:73)
      at tryCatch (runtime.js:45)
      at Generator.invoke [as _invoke] (runtime.js:274)
      at Generator.prototype.&lt;computed&gt; [as next] (runtime.js:97)
      at tryCatch (runtime.js:45)
      at invoke (runtime.js:135)
      at runtime.js:170
      at tryCallTwo (core.js:45)
  </code></pre>
  
  <p>the files is </p>
  
  <pre><code>[{name: "imageFile", filename: "IMGs.jpg", filepath: "/data/user/0/com.bookland/cacheNONE/1201418716", filetype: "image/jpeg"},{name: "imageFile", filename: "IMGs.jpg", filepath: "/data/user/0/com.bookland/cacheNONE/1201418716", filetype: "image/jpeg"}]
  </code></pre>
  
  <p><strong>Thank you for your helps</strong> </p>