diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2022-04-11 07:10:27 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2022-04-11 07:10:27 +0000 |
commit | 12290a84682d2ec14710160dd88f9a3898ec14c3 (patch) | |
tree | 48dce2e6e4c943090799f3ca478ac434cf85d37c | |
parent | 3635f1496e38efbc13a2760792ba2817f53137a9 (diff) | |
download | redmine-12290a84682d2ec14710160dd88f9a3898ec14c3.tar.gz redmine-12290a84682d2ec14710160dd88f9a3898ec14c3.zip |
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
-rw-r--r-- | public/javascripts/attachments.js | 2 |
1 files changed, 1 insertions, 1 deletions
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); } } } |