From: Marius Balteanu Date: Mon, 11 Apr 2022 07:09:58 +0000 (+0000) Subject: Merged r21523 to 5.0-stable (#36887). X-Git-Tag: 5.0.1~22 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4dcbab7acd2dba14bd62685fef4b041412844363;p=redmine.git Merged r21523 to 5.0-stable (#36887). git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21530 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js index 3155362fc..76d75d6e2 100644 --- a/public/javascripts/attachments.js +++ b/public/javascripts/attachments.js @@ -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); } } }