title: Multipart upload in REST assured
body: <p>I am trying to upload csv file using rest assured multipart upload method.
  In swagger API documentation, request body is like below  for multipart csv upload.</p>
  <pre><code>{
  &quot;file&quot;:&quot;string&quot;
  }
  </code></pre>
  <p>My code is like this.</p>
  <pre><code>String file = &quot;src/resources/ccp/csvs/sample.csv&quot;
      responsePost = given()
                  .multiPart(&quot;file&quot;, new File(file), &quot;text/csv&quot; )
  //                .header(&quot;Content-type&quot;, &quot;application/json&quot;)
                  .and()
                  .when()
                  .post(url)
                  .then()
                  .extract().response();
  </code></pre>
  <p>This is working in IntelliJ idea without any issue. However when I package the code into a jar using maven and run it, It returns fileNotFound exception.</p>
  <p>As I saw, the only solution is to use java file inputstream, but since swagger says to use a file, it is impossible to use input stream, isn't it?</p>
  <p>Is there another way to handle this issue?</p>