1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-01 03:57:15 +00:00

Fix that copy paste image from clipboard fails to generate a unique file name (#36887).

git-svn-id: https://svn.redmine.org/redmine/trunk@21523 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Marius Balteanu 2022-04-05 07:01:10 +00:00
parent 5914b0ebc2
commit 0bb0191289

View File

@ -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);
}
}
}