title: How to upload a CSV file using REST-assured in Java?
body: <p>I want to pass a CSV file type to an API in order to execute a POST and PUT requests. I'm using rest-assured and I tried to pass the file with the multiPart() method but it returns always HTTP code 400. Http code 200 is expected and a JSON with details as response.</p>
  
  <p>Manually this is how the request looks like</p>
  
  <pre><code>curl -X POST "https://awesome/url" -H "accept: application/json" -H "Content-Type: multipart/form-data" -F "callbackUrl=https://sameAwesome/url" -F "file=@fileName.csv;type=application/vnd.ms-excel" -F "fileFormat="csv"
  </code></pre>