title: Android issue uploading image to server using Axios in React-Native App
body: <p>I am getting the following network error when attempting to upload/POST an image from Android. Works perfectly on iOS. Works perfectly on Android when no image included in FormData.</p>
  
  <pre><code>export function formatAvatarData(uri) {
    const form = new FormData();
    form.append('avatar', {
      uri: uri,
      type: 'file',
      name: 'image.jpg',
    });
    return form;
  }
  </code></pre>
  
  <p>iOS - [THIS WORKS AS EXPECTED]
  uri: <code>file:///Users/bobfriston/Library/Developer/CoreSimulator/Devices/16E84C5E-2545-408C-B870-38054DFA3471/data/Containers/Data/Application/7D2F59E5-450A-4A60-962A-D5C368DCD8DF/Documents/images/F5AD02D9-6C3E-46E5-B54E-D5C98206BAAA.jpg</code></p>
  
  <p>ANDROID URI - [THIS GIVES NETWORK ERROR AS BELOW]
  uri: <code>content://com.google.android.apps.photos.contentprovider/0/1/content%3A%2F%2Fmedia%2Fexternal%2Fimages%2Fmedia%2F79/ORIGINAL/NONE/1408072274</code></p>
  
  <pre><code>Error: Network Error
      at createError (createError.js:15)
      at XMLHttpRequest.handleError (xhr.js:87)
      at XMLHttpRequest.dispatchEvent (event-target.js:172)
      at XMLHttpRequest.setReadyState (XMLHttpRequest.js:542)
      at XMLHttpRequest.__didCompleteResponse (XMLHttpRequest.js:378)
  </code></pre>
  
  <p>NOTES:
  "react-native": "=0.42.3"</p>
  
  <p>AndroidManifest.xml has these permissions included:</p>
  
  <pre><code>android.permission.INTERNET"
  android.permission.SYSTEM_ALERT_WINDOW"/&gt;
  android.permission.CAMERA" /&gt;
  android.permission.WRITE_EXTERNAL_STORAGE"/&gt;
  </code></pre>