title: How to attach file upload with state values
body: <p>This is my React State</p>
  
  <pre><code>this.state = {
              data : {
                  employee_Name:"" ,
                  employee_Id:"",
                  employee_Doj:"",
                  employee_ResumeFile:""
               }
  }
  </code></pre>
  
  <p>I am getting uploaded file data on change</p>
  
  <pre><code>onChangeHandler=event=&gt;{
      const data = { ...this.state.data }; 
      data.employee_ResumeFile = event.target.files[0];
      this.setState({ data }); 
      console.log(data);
  
  }
  </code></pre>
  
  <p>How to add this to my axios along with existing state data</p>
  
  <pre><code>doSubmit() {    
     // How to add this form data inside my axios
      const data = new FormData() 
      data.append('file', this.state.data.employee_ResumeFile)
  
     axios.put(apiEndpoint+'/update/'+this.props.match.params.id+'/basic-details',{
          employee_Name:this.state.data.employee_Name, 
          employee_Id: this.state.data.employee_Id,
          employee_Doj:this.state.data.employee_Doj, 
          employee_ResumeFile.state.data.employee_ResumeFile
        })
  }
  </code></pre>
  
  <p>Should we use only formdata() to send file if then how to add formdata value inside my axios with existing values</p>