From 12290a84682d2ec14710160dd88f9a3898ec14c3 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Mon, 11 Apr 2022 07:10:27 +0000 Subject: Merged r21523 to 4.2-stable (#36887). git-svn-id: https://svn.redmine.org/redmine/branches/4.2-stable@21531 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- public/javascripts/attachments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js index 1cf1e1ae6..839b4c776 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); } } } -- cgit v1.2.3