title: React Native POST "multpart form-data" 500 server error
body: <p>When I try to POST an image to my Node/Express server (deployed on Heroku), then I get a 500 server error.</p>
  
  <p>POSTing through Postman works just fine.</p>
  
  <p>Here is my React Native code:</p>
  
  <pre><code>upload = async uri =&gt; {
    const formData = new FormData();
  
    formData.append("photo", {
      uri,
      name: `photo`,
      type: `image/jpg`
    });
  
    const options = {
      method: "POST",
      body: formData,
      headers: {
        "Content-Type": "multipart/form-data"
      }
    };
  
    axios
      .post("https://prezzi-api.herokuapp.com/upload", formData, options)
      .then(response =&gt; {
        console.warn(response.data);
      })
      .catch(error =&gt; {
        console.warn("error uploading to OCR", error);
      });
  };
  </code></pre>
  
  <p>My Express route looks like this:</p>
  
  <pre><code>router.post(
    "/",
    multer.single("image"),
    gcsMiddlewares.sendUploadToGCS,
    (req, res, next) =&gt; {
      console.log("post");
      if (req.file &amp;&amp; req.file.gcsUrl) {
        return res.send(req.file.gcsUrl);
      }
  
      return res.status(500).send("Unable to upload");
    }
  );
  </code></pre>
  
  <p>The console.log in my route does NOT get hit when I am not using Postman.</p>