title: Robot Framework “multipart/form-data” REST request with multiple parameters
body: <p>I am trying to use requestslibrary to upload some files, goal is to achieve this:</p>
  
  <pre><code>------WebKitFormBoundary61N9vqJ7380nh6iv
  Content-Disposition: form-data; name="files"; filename="photo-2.jpeg"
  Content-Type: image/jpeg
  
  
  ------WebKitFormBoundary61N9vqJ7380nh6iv
  Content-Disposition: form-data; name="fileId"
  
  b3duLWZpbGVzL2ZmZmZmZmZmYTQyNDVmODAvMjAxNTY*
  ------WebKitFormBoundary61N9vqJ7380nh6iv
  Content-Disposition: form-data; name="extract"
  
  false
  ------WebKitFormBoundary61N9vqJ7380nh6iv--
  </code></pre>
  
  <p>and now I have this, as per <a href="https://stackoverflow.com/questions/53462955/robotframework-request-how-to-make-a-post-request-with-content-multipart-form">this</a>:</p>
  
  <pre><code>  ${data}=    Evaluate    {'files': open("C:/testautomation/resources/Assets/photo-2.jpeg", 'r+b'), 'extract': (None, 'false'), 'fileId': (None, 'b3duLWZpbGVzL2ZmZmZmZmZmYTQyNDVmODAvMjAxNTY*')}
    log  ${data}
    ${result}=  Post Request  rest  ${url}  headers=${HEADERS}  files=${data}
  </code></pre>
  
  <p>I <em>THINK</em> that the only bit I am missing is the "Content-Type: image/jpeg" from the first part, but how on earth I can add that? Currently the file gets uploaded, but it is not considered to be an image file.</p>