title: Python requests post file inside nested object multipart
body: <p>Here's what I want to achieve:</p>
  
  <pre><code>f = open("/path/to/file/screenshot.png", "r")
  f2 = open("/path/to/file/screenshot2.png", "r")
  
  
  data = {
      "type": "1",
      "photos": [
          {"image": f.read()},
          {"image": f2.read()}
      ]
  }
  
  print requests.post(url, data, auth=HTTPBasicAuth("usr", "pass")).json()
  </code></pre>
  
  <p>The request sends out correctly but the endpoint doesn't get the images that are being sent over.</p>
  
  <p>I tried the same thing with strings instead of images and it worked if I set the content-type manually to application/json</p>
  
  <p>Is it possible to send files inside nested objects like I've displayed ?</p>
  
  <p>Thank you!</p>