From 4dcbab7acd2dba14bd62685fef4b041412844363 Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Mon, 11 Apr 2022 07:09:58 +0000 Subject: [PATCH] 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 --- 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 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); } } } -- 2.39.5