title: How to post a file(pdf,doc) in axios service along with JSON data
body: <p>I want to send PDF/Docs files in axios service along with other JSON data.
  I have refered (<a href="https://stackoverflow.com/questions/43013858/ajax-post-a-file-from-a-form-with-axios/43014086#43014086">Ajax post a file from a form with Axios</a>) but it only sends file without any JSON data.</p>
  
  <pre><code> field_value: {}, // here it shows empty object,but it should show File Object
   field_type: "file_upload", 
   is_file_upload: true
  </code></pre>
  
  <p>}</p>
  
  <p>when I console the object before sending request than it shows me a file object in FormData() but it show empty braces when is see it in post request.</p>