title: In Nodejs (request) how to send file in a mutliPart http request
body: <p>How can I send File using MultiPart using from Nodejs, using request?</p>
  
  <p>That will be the same as following command to Curl:</p>
  
  <pre><code>curl -X POST -F "photos[]=@img.jpg;type=image/jpg" https://example.com
  </code></pre>
  
  <p>The Http request it creates:</p>
  
  <pre><code>{
    "json": null,
    "files": {
      "photos[]": "data:image/jpg;base64,[Binary]
  },
    "form": {},
    "headers": {
      "Accept": "*/*",
      "Content-Type": "multipart/form-data; boundary=----------------------------0195fbe0d4ab",
      "Connection": "close",
      "Host": "httpbin.org",
      "Content-Length": "42311",
      "User-Agent": "curl/7.24.0 (x86_64-apple-darwin12.0) libcurl/7.24.0 OpenSSL/0.9.8x zlib/1.2.5"
    },
    "origin": "23.125.128.191",
    "data": "",
    "url": "http://httpbin.org/post",
    "args": {}
  }
  </code></pre>