title: How to make a POST request in karate framework, if the content-type is multipart/formdata?
body: <p>I am writing a BDD(Behavior Driven Development Script) for my application using karate framework. I want to make a POST request with the content-type = multipart/formdata. While making POST request the data is not passing to the backend application.</p>
  
  <p>Created a JSON file with the data in it and calling the JSON file in the .feature file.</p>
  
  <p>file.json</p>
  
  <pre><code>{
  "files[0].name": "file_1",
  "files[0].type": "Audio",
  "files[0].file": "classpath/folder/file.mp3",
  "files[1].name": "file_2",
  "files[1].type": "Video",
  "files[1].file": "classpath/folder/file.3gp",
  "location": "D:/files/"
  }
  
  Feature: POST call
    Background:
     # * url baseURI
    Scenario: Passing data in POST call
     Given url 'http://localhost:8080/request'
     And header Content-Type = 'multipart/formdata'
     And request read('classpath:folder/file.json')
     when method post
     Then status 200
  </code></pre>
  
  <p>Expecting the data to be saved but I don't see data passing to the backend application. Is this the correct way of passing the multipart/formdata?</p>