title: Reactjs Nodejs file upload ftp via axios
body: <p>I am trying to upload file using React Dropzone on ftp with Reactjs + AXIOS at front end, Nodejs + connect-multiparty at back end.
  The problem is when I am sending file via front end using AXIOS, I am not getting the file at server in request.
  My code to upload file using react-axios is</p>
  
  <pre><code>let data = new FormData()
  data.append('file', file)    
  var setting = {
      method: 'post',
      url: 'my-server-url',
      data:data,
      headers: {
          'Content-Type': 'multipart/form-data'
      },   
  }
  var response = axios(setting).then(response =&gt; { return response.data })
      .catch(response =&gt; response = {
          success: 500,
          message: "Your submission could not be completed. Please Try Again!",
          data: ""
      });
  </code></pre>
  
  <p>while using postman, everything works fine. Server side api is working. only problem with client side request code.</p>
  
  <p>Any help!!!</p>