title: file variable in dropzone.js
body: <p>I am using dropzone.js to implement file uploading. I am new to JavaScript. Can anyone tell me what does the variable <code>file</code> store here? The name of the file?</p>
  
  <pre><code>accept: function(file, done) {
  return done();
  },
  </code></pre>
  
  <p>Moreover, I want to display the content of the file to the text area having <code>id="editor"</code>.</p>
  
  <pre><code>accept: function(file, done) {
  document.getElementById('editor').value=file.text;
  return done();
  },
  </code></pre>
  
  <p>Ihave used <code>file.text</code> and also the <code>readAsText()</code>, but both of them are showing <code>undefined</code> in the text area. Is there any other easy way to do it?  </p>
  
  <p>This function is present in <code>dropzone.js</code> file.<br>
  OR is there any way so that i can use PHP functions like <code>file_get_contents()</code> in <code>.js</code> file and in JavaScript function ?</p>