title: Axios in React app. Posting image with form data sends request with empty body
body: <p>I'm trying to send image file to my backend API. Last works fine with Postman. The problem is not with image, I'm not able to send any request with axios and form data, no meter I append image or not.</p>
  <p>Everything works fine with fetch. It took time to understand, that fetch does not need any content type, and last generates automatically as <code>multipart/form-data</code> with right boundary.</p>
  <p>As written axios should do same as fetch, but it does not generate or change its content-type. Passing header <code>'content-type' : 'multipart/form-data</code> does not do the trick of course. When I do not set content type it just use <code>application/json</code>. I was not able to find anything like that in documentation. Everywhere its says, that axios should create content type header automatically.</p>
  <p>My axios version is <code>0.18.0</code>.
  Here is code, it can't be more simple =)</p>
  <pre><code>axios
      .post(url, payload)
  </code></pre>