summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2022-04-11 07:09:58 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2022-04-11 07:09:58 +0000
commit4dcbab7acd2dba14bd62685fef4b041412844363 (patch)
treed7a4ca42e0dcee91d72e802f376e20bcd3402ee2 /public
parent74967ad4f383539682f8f20a196436f7e3974fab (diff)
downloadredmine-4dcbab7acd2dba14bd62685fef4b041412844363.tar.gz
redmine-4dcbab7acd2dba14bd62685fef4b041412844363.zip
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
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/attachments.js2
1 files changed, 1 insertions, 1 deletions
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);
}
}
}