title: Getting error during uploading a video in react native
body: <p>I am fetching video from mobile using react-native-image-picker and uploading it to the server by using the fetch method. Don't know what I am doing wrong?</p>
  
  <pre><code>constructor(props){
   super(props);
   this.state = {
     isLoading:true,
     isModalVisible: false,
     isOptionVisible:false,
     avatarSource:"",
     chapname:'',
     chapdesc:''
   }
  };
  
  var formData = new FormData();
  formData.append('name', 'video name');
  formData.append('desc', 'video description');
  formData.append('file', {uri: this.state.avatarSource, name: this.state.avtarname.fileName, type: 'video/mp4'});
  
  fetch(api, {
    method: "POST",
      headers: {
        'Accept': 'application/json',
        'Content-Type' :'multipart/form-data',
        'Authorization': `JWT ${teacher_token}`
      },
      body: formData
  })
  </code></pre>
  
  <p>and here is the response when I pick a video from phone</p>
  
  <pre><code>{path: "/storage/emulated/0/DCIM/Camera/VID_20200306_172706.mp4", uri: "content://com.miui.gallery.open/raw/%2Fstorage%2Fe…ted%2F0%2FDCIM%2FCamera%2FVID_20200306_172706.mp4"}
  </code></pre>
  
  <p>the error I getting is a network request failed. Here is the error which gets on the console </p>
  
  <pre><code>Fetch Error TypeError: Network request failed
  at XMLHttpRequest.xhr.onerror (E:\eshikshaserver\node_modules\whatwg-fetch\dist\fetch.umd.js:473)
  at XMLHttpRequest.dispatchEvent (E:\eshikshaserver\node_modules\event-target-shim\dist\event-target-shim.js:818)
  at XMLHttpRequest.setReadyState (E:\eshikshaserver\node_modules\react-native\Libraries\Network\XMLHttpRequest.js:574)
  at XMLHttpRequest.__didCompleteResponse (E:\eshikshaserver\node_modules\react-native\Libraries\Network\XMLHttpRequest.js:388)
  at E:\eshikshaserver\node_modules\react-native\Libraries\Network\XMLHttpRequest.js:501
  at RCTDeviceEventEmitter.emit (E:\eshikshaserver\node_modules\react-native\Libraries\vendor\emitter\EventEmitter.js:189)
  at MessageQueue.__callFunction (E:\eshikshaserver\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:436)
  at E:\eshikshaserver\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:111
  at MessageQueue.__guard (E:\eshikshaserver\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:384)
  at MessageQueue.callFunctionReturnFlushedQueue (E:\eshikshaserver\node_modules\react-native\Libraries\BatchedBridge\MessageQueue.js:110)
  </code></pre>
  
  <p>I know something I am missing but can not find it. Stucked on it.</p>