]> source.dussan.org Git - redmine.git/commitdiff
Merged r21523 to 5.0-stable (#36887).
authorMarius Balteanu <marius.balteanu@zitec.com>
Mon, 11 Apr 2022 07:09:58 +0000 (07:09 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Mon, 11 Apr 2022 07:09:58 +0000 (07:09 +0000)
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21530 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/attachments.js

index 3155362fcded55afca03d8ee21c908a40059d492..76d75d6e200ddc256f0441b48fc12762d41348a5 100644 (file)
@@ -291,7 +291,7 @@ function copyImageFromClipboard(e) {
 
       var inputEl = $('input:file.filedrop').first()
       handleFileDropEvent.target = e.target;
-      addFile(inputEl, file, true);
+      addFile(inputEl, new File([file], filename, { type: file.type }), true);
     }
   }
 }