title: React native fs upload files issue
body: <p>I am using <a href="https://github.com/itinance/react-native-fs" rel="nofollow noreferrer">https://github.com/itinance/react-native-fs</a> for upload files, but it's not sending any request to my server and sometimes it throws a socket-io issue, please check my current code that I have used.</p>
  
  <p>I have tried simple fetch using form data but it works for ios only not in android</p>
  
  <pre><code>const toUrl =  'http://***';
  const name = 'file_XCzY_SINGLE_FILE_POST';
  const filename = 'IMG-20190514-WA0003.jpg';
  const filepath = 'content://com.android.providers.media.documents/document/image%3A209152';
  const filetype = 'image/jpeg';
  
  
  const params = {
    c2f: "HP4S",
    isIOS: false,
    meta_Chartfield_Number: '121212',
    meta_Comments: "",
    meta_Department: "%user_ldap_department%",
    meta_Due_date_Poster_Order_Form: null,
    meta_Due_time_Poster_Order_Form: "4 pm",
    meta_Email: "%user_ldap_mail%",
    meta_Name123: "%user_ldap_displayName%",
    name: "file_XCzY_SINGLE_FILE_POST",
    the_action: "STOR",
    uploadPath: "%2FTest%2F"
  };
  
  
   const uploadBegin = (response) =&gt; {
     const jobId = response.jobId;
     console.log('UPLOAD HAS BEGUN! JobId: ' + jobId);
   };
  
   const uploadProgress = (response) =&gt; {
     const percentage = 
   Math.floor((response.totalBytesSent/response.totalBytesExpectedToSend) 
   * 100);
     console.log('UPLOAD IS ' + percentage + '% DONE!');
   };
  
  
   RNFS.uploadFiles({
     toUrl: encodeURI(url),
     files: [{
       name
       filename
       filepath
       filetype
     }],
     method: 'POST',
     headers: {
       'Accept': 'application/json',
       'Content-Type': 'multipart/form-data',
       'Cookie': 'my-cookies*****'
     },
     fields: params,
     begin: uploadBegin,
     beginCallback: uploadBegin,
     progressCallback: uploadProgress,
     progress: uploadProgress
     }).promise.then((response) =&gt; {
      console.log(response,"&lt;&lt;&lt; Response");
      if (response.statusCode == 200) {
       console.log('FILES UPLOADED!');
      } else {
       console.log('SERVER ERROR');
      }
     })
     .catch((err) =&gt; {
       if (err.description) {
        switch (err.description) {
          case "cancelled":
           console.log("Upload cancelled");
           break;
          case "empty":
            console.log("Empty file");
          default:
            //Unknown
         }
        } else {
          //Weird
          console.log('Weird')
        }
         console.log(err);
      });
  </code></pre>
  
  <p>Please let me know if I did any mistakes in my code like fields, or anything else, it would be really helpful for me </p>
  
  <p>Thanks.</p>