title: Convert CSV to JSON client side with React DropZone
body: <p>From <a href="https://github.com/okonet/react-dropzone" rel="nofollow noreferrer">React dropzone</a>, i receive a File object with a File.preview property whose value is a blob:url. i.e. <code>File {preview: "blob:http://localhost:8080/52b6bad4-58f4-4ths-a2f5-4ee258ba864a"</code></p>
  
  <p>Is there a way to convert this to json on the client? The file isnt need to be stored in a database (the convert JSON will be). I've attempted to use <a href="https://github.com/Keyang/node-csvtojson" rel="nofollow noreferrer">csvtojson</a> but it's unable to use the file system as it uses node to power it. Ideally would like to convert this in the client if possible, once user has uploaded it. Any suggestions welcomed. </p>
  
  <pre><code>        &lt;Dropzone
              name={field.name}
              onDrop={(acceptedFiles, rejectedFiles) =&gt; {
                  acceptedFiles.forEach(file =&gt; {
                      console.log(file)
                      let tempFile = file.preview
                      csv()
                          .fromSteam(tempFile) // this errors with fs.exists not a function as its not running serverside
  
                          .on('end_parsed',(jsonArrObj)=&gt;{
                              console.log(jsonArrObj)
                          })
                  })
              }}
          &gt;
  </code></pre>