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

public/javascripts/attachments.js

index 1cf1e1ae624dae84568fde08338ffaed6c77cdab..839b4c776377d804f82e6aadbe2cc746d4f958be 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);
     }
   }
 }