title: Drag File to Download in Firefox
body: <p>I've implemented drag'n'drop file downloads for some reports in my company's intranet, but it's only currently working correctly in Chrome. In Firefox, all I get is the link dragged out rather than the file being saved. Here's the meaty bit:</p>
  
  <pre><code>var dragDL = function (e, filedata) {
      if (e.dataTransfer) {
          var url = filedata || (this.dataset &amp;&amp; this.dataset.downloadurl) || this.getAttribute("data-downloadurl");
          e.dataTransfer.setData("DownloadURL", url);
      }
  };
  </code></pre>
  
  <p><strong><a href="http://jsfiddle.net/davmillar/F5L6r/" rel="nofollow">Here's a jsFiddle with a live link in it and mostly the same code.</a></strong> <em>(For some reason, the fiddle version doesn't work in Chrome either &#8212; not sure if it's a cross-domain issue?)</em></p>
  
  <p>Can anyone lend some insight into what I'm doing wrong? I'm finding next to nothing on this when Googling for it.</p>