title: Setting a filename to a blob before uploading it
body: <p>I need to upload image files to the server using blob, but the name of the file after uploading is always set to "blob" or, when downloading, the name of the source code file + .jpg. My code works on Chrome, but I need it to work on IE10 and unfortunately I don't know how.</p>
  
  <p>What I do is this:</p>
  
  <pre><code>function uploadBlob() {
      var fileName = //insert method to get the original filename of the file uploaded here...
  
      var blob = dataURItoBlob(dataURL); //this method gets an image, compresses it and returns it as blob
  
      var blob2 = new Blob([blob], { type: "image/jpeg" });
                        blob2.lastModifiedDate = new Date();
                        blob2.name = fileName;
  
      return blob2;
  }
  </code></pre>
  
  <p>This would be much easier with File Constructor, but IE and Edge don't support it. The function needs to return a file or a blob, and with my current code it uploads to the server just fine, it's just the file name isn't right. How can I get around this?</p>