title: How to send data correct axios Error: Multipart: Boundary not found
body: <p>I don't know why I receive on server <strong>[Error: Multipart: Boundary not found]</strong> 
  and <strong>bundle.js:37628 POST <a href="http://localhost:8800/exporttocsv" rel="noreferrer">http://localhost:8800/exporttocsv</a> 500 (Internal Server Error</strong>)
  When I make post through  </p>
  
  <pre><code>&lt;form action="/exporttocsv" method="POST"  encType="multipart/form-data"&gt;
  </code></pre>
  
  <p>post works correctly, but through <code>axios</code> doesn't work.</p>
  
  <p><strong><em>Please help me fix the mistake</em></strong></p>
  
  <p>this my code
  /--client</p>
  
  <pre><code>import axios from 'axios'
  var formData = new FormData()
  
  const config = { headers: { 'Content-Type': 'multipart/form-data' } };
  export const ipmortToCSV = (file) =&gt; dispatch =&gt; {
  
  formData.append('file',file)
  console.log(formData.getAll('data'))
  
  axios.post('/exporttocsv', {
            "UploadCommand": formData
        },config)
        .then(function (response) {
          console.log(response);
        })
        .catch(function (error) {
          console.log(error);
        });
  </code></pre>
  
  <p>//--server</p>
  
  <pre><code>const router = require('express').Router()
  var csv = require('csv-express')
  const controllers = require('../../controllers/exporttocsv')
  var multer  = require('multer')
  var upload = multer({dest : 'exporttocsv/'})
  
  router.get('/', (req, res) =&gt; {
        controllers.exportToCsv(req,res)
    })
  router.post('/',upload.single('file'),(req,res) =&gt; { 
      //controllers.importToCsv(req,res)
  })
  
  module.exports = router
  </code></pre>