title: How to return new filename to Dropzone after upload is complete as hidden form input?
body: <p>I am currently using <em>Dropzone</em> to allow users upload some files into the system I'm developing and have linked the <em>Dropzone</em> to a <code>div</code> within my form, </p>
  
  <p>But once the upload is complete, I would like the filename of the newly uploaded file to be returned to the Dropzone as a <code>hidden</code> form input so that I can save the filename in the database. </p>
  
  <p>Below is the code Im using:</p>
  
  <pre><code>$(document).ready(function(){
      var myDropzone = new Dropzone("div#my-awesome-dropzone", {  
          url: "?content=plg_dropzone&amp;folder=php&amp;file=uploadhandler&amp;alert=yes",
          addRemoveLinks : true,
          acceptedFiles : "application/pdf",
          maxFilesize: 5, // MB
          maxFiles: 5
      });
  });
  </code></pre>
  
  <p>Assistance on this will be greatly appreciated. I've searched on the net and not gotten a solution.</p>
  
  <p>Thanks</p>