Trying to set fileinput val from drag and drop Jquery file
<p>Im trying to make a simple uploader where users drag and drop files from the desktop into the website element. I believe I figured out how but I cant seem to get any information on the file. How can I set a file inputs value from a drag and drop? Here is the drag and drop code im not sure if its correct. The box does change color when draged over thats about it.</p>

<pre><code>$(".droparea").bind({
  dragleave: function (e) {
                e.preventDefault();
            $(".droparea").css("backgroundColor","white");


            },
            drop: function (e) {
                e.preventDefault();
//something here to set the FileInput element val()
                           },
            dragenter: function (e) {
                e.preventDefault();
               $(".droparea").css("backgroundColor","Green");
            },
            dragover: function (e) {
                e.preventDefault();

            }
        });
</code></pre>
