title: React native : images generating network error
body: <p>When sending images to a react-native application, some image returns a Network Error.</p>
  <p>I can not find the solution, because other image is sent perfectly.
  If anyone would have a solution for this problem!</p>
  <h4>React native application</h4>
  <pre class="lang-js prettyprint-override"><code>let data = new FormData()
  data.append('file', {
      name: picture.uri.split('/').pop(),
      type: picture.type,
      uri: picture.uri
  })
  </code></pre>
  <pre class="lang-js prettyprint-override"><code>await axios.post(URL, data, {
      headers: {
          'Accept': 'application/json',
          'Content-Type': `multipart/form-data;boundary='--${Date.now()}--'`
      }
  }).catch(err =&gt; console.log('ERROR', err))
  </code></pre>
  <h4>NodeJS server</h4>
  <pre class="lang-js prettyprint-override"><code>const storage = multer.diskStorage({
      destination(req, file, cb) {
          console.log(&quot;destination&quot;, file)
          cb(null, '../../cloud/channels/')
      },
      filename(req, file, cb) {
          cb(null, Date.now() + path.extname(file.originalname))
      }
  })
  
  const upload = multer({
      storage,
      limits: {
          fileSize: 1024 * 1024 * 20
      }
  })
  </code></pre>
  <pre class="lang-js prettyprint-override"><code>app.post('/', upload.single('file'),(req: Request, res: Response) =&gt; {
      console.log('FILE', req.file)
  
      return res.status(200).json({
          result: 'ok'
      })
  })
  </code></pre>
  <p>thanks in advance </p>