Commit e6a27bca authored by lain's avatar lain

MediaUpload: Allow drag-and-drop of multiple files at once

parent acbef1eb
Pipeline #26940 passed with stages
in 7 minutes and 23 seconds
......@@ -37,7 +37,9 @@ const mediaUpload = {
fileDrop (e) {
if (e.dataTransfer.files.length > 0) {
e.preventDefault() // allow dropping text like before
this.uploadFile(e.dataTransfer.files[0])
for (const file of e.dataTransfer.files) {
this.uploadFile(file)
}
}
},
fileDrag (e) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment