title: request formData to API, gets “Network Error” in axios while uploading image
body: <p>I am making a POST request to  server to upload an image and sending formdata using axios in react-native.  i am getting "Network Error". i also try fetch but nothing work.using react native image picker libeary for select image.in postman api working fine</p>
  
  <pre><code>        formData.append('title', Title);
          formData.append('class_id', selectClass._id)
          formData.append('subject_id', checkSelected)
          formData.append('teacher_id', userId)
          formData.append('description', lecture);
          formData.append('type', 'image');
  
         var arr=[];
         arr.push(imageSource)
         arr.map((file,index)=&gt;{
         formData.append('file',{
         uri:file.path,
         type:file.type,
         name:file.name
         })
         })
  
  
         axios({
         method: 'post',
         url: URL + 'admin/assignment/create',
         data: data,
         headers: {
         "content-type": "multipart/form-data",
         'x-auth-token': token,
          },
         })
       .then(function (response) {
      //handle success
      console.log('axios assigment post',response);
        })
     .catch(function (response) {
       //handle error
        console.log('axios assigment post',response);
      });
  </code></pre>