title: Equivalent to fs.createReadStream to use with input type file
body: <p>I'm using Browserify to convert a node js project (Google Drive Api uploads) in a browser frontend JS function, all works fine until I reach the line:</p>
  
  <pre><code>body: fs.createReadStream('./some_file.ext')
  </code></pre>
  
  <p>Where the console says that fs.createReadStream is not a function. I was trying to use an input type file to let the users choose his file before uploading but when I try to replace fs.createReadStream('./some_file.ext') with "multipartRequestBody" as shown here: <a href="https://developers.google.com/drive/v2/reference/files/insert" rel="noreferrer">https://developers.google.com/drive/v2/reference/files/insert</a></p>
  
  <p>Then I get "Invalid multipart request with 0 mime parts".</p>
  
  <p>If I try with an Undefined body, it upload it with correct metadata but its empty.</p>
  
  <p>Please help :( </p>
  
  <p>[EDIT] When I saw the object "fs.createReadStream" in console.log the output is:</p>
  
  <pre><code>ReadStream {
   _readableState:
    ReadableState {
      objectMode: false,
      highWaterMark: 65536,
      buffer: BufferList { head: null, tail: null, length: 0 },
      length: 0,
      pipes: null,
      pipesCount: 0,
      flowing: null,
      ended: false,
      endEmitted: false,
      reading: false,
      sync: true,
      needReadable: false,
      emittedReadable: false,
      readableListening: false,
      resumeScheduled: false,
      defaultEncoding: 'utf8',
      ranOut: false,
      awaitDrain: 0,
      readingMore: false,
      decoder: null,
      encoding: null },
   readable: true,
   domain: null,
   _events: { end: [Function] },
   _eventsCount: 1,
   _maxListeners: undefined,
   path: './some_file.ext',
   fd: null,
   flags: 'r',
   mode: 438,
   start: undefined,
   end: undefined,
   autoClose: true,
   pos: undefined,
   bytesRead: 0 }
  </code></pre>
  
  <p>I tried with FileReader() and "this.files" (from input type file) but the output in console is different. Is there any other way to get the same kind of object but with input type file?</p>