title: Error: unexpected end of stream when upload file to server (react native fs)
body: <p>I am using <a href="https://github.com/itinance/react-native-fs" rel="nofollow noreferrer">react-native-fs</a> to upload file(images) to server</p>
  
  <p>on backend I am using laravel 5</p>
  
  <p>This is the code to upload the file (should be about same as on their doc)</p>
  
  <pre><code>async uploadImageReq(){
      var url = this.API_BASE_URL + '/api/addimages/'
      var uploadBegin = (response) =&gt; {
        var jobId = response.jobId;
        console.log('UPLOAD HAS BEGUN! JobId: ' + jobId);
      };
  
      var uploadProgress = (response) =&gt; {
        var percentage = Math.floor((response.totalBytesSent/response.totalBytesExpectedToSend) * 100);
        console.log('UPLOAD IS ' + percentage + '% DONE!');
      };
      console.log('check url', url, files) 
      return await RNFS.uploadFiles({
        toUrl: url,
        files: files,
        method: 'POST',
        headers: {
          'Accept': 'application/json',
          'Authorization': 'Bearer ' + this._sessionToken,
          'Connection': 'close'
        },
        fields: {
          'hello': 'world',
        },
        begin: uploadBegin,
        progress: uploadProgress
      }).promise.then((response) =&gt; {
          console.log('result', response)
          return response
          if (response.statusCode == 200) {
            console.log('FILES UPLOADED!'); // response.statusCode, response.headers, response.body
          } else {
            console.log('SERVER ERROR');
          }
        })
        .catch((err) =&gt; {
          if(err.description === "cancelled") {
            // cancelled by user
          }
          console.log('ERROR',err);
        })
    }
  </code></pre>
  
  <p>This throw error </p>
  
  <blockquote>
    <p>[Error: unexpected end of stream] framesToPop: 1, code: 'EUNSPECIFIED'</p>
  </blockquote>
  
  <p>Any idea what cause this error?</p>