title: React dropzone, how to upload image?
body: <p>Using React dropzone, I've successfully accessed the image using the <code>onDrop</code> callback. However, I'm trying to upload to Amazon S3 by sending the image to my server, saving to an S3 bucket, and returning a signed url to the image back to the client. </p>
  
  <p>I can't do this with the information I have so far and the docs don't seem to mention this to my knowledge.</p>
  
  <p><code>onDrop</code> triggers a function call in my redux actions with the files:</p>
  
  <pre><code>export function saveImageToS3 (files, user) {
    file = files[0]
    // file.name -&gt; filename.png
    // file -&gt; the entire file object
    // filepreview -&gt; blob:http:localhost:3000/1ds3-sdfw2-23as2
  
    return {
      [CALL_API] : {
        method:'post',
        path: '/api/image',
        successType: A.SAVE_IMAGE,
        body: {
          name: file.name,
          file: file,
          preview: file.preview,
          username: user
        }
      }
    }
  }
  </code></pre>
  
  <p>However, when I get to my server, I'm not sure how to save this blob image (that's only referenced from the browser.)</p>
  
  <pre><code> server.post('/api/image', (req, res) =&gt; {
    // req.body.preview --&gt; blob:http://localhost:3000/1ds3-sdfw2-23as2
    // req.body.file -&gt; {preview:blob:http://localhost:3000/1ds3-sdfw2-23as2}, no other properties for some reason
  })
  </code></pre>