title: How do I make axios post request with body and form data simultaneously?
body: <p>I want to send a post rquest with axios that has body data and form data and I can get anything to reach through to my route hadler:</p>
  
  <pre><code>axios({
      method: 'POST',
      url: `${keys.SERVER_URL}/post/new-post/${isAuthenticated()._id}`,
      formData,
      data: { title, content },
      headers: {
          'Content-Type': 'application/json',
          'Content-Type': 'multipart/form-data',
      },
  });
  </code></pre>
  
  <p>then in the route handler I <code>console.log</code> and I get nothing:</p>
  
  <pre><code>app.post("/new-post", (req, res) =&gt; {
      console.log(req.body);
      console.log(req.file):
  });
  </code></pre>