Skip to content
Snippets Groups Projects
Commit e6a27bca authored by lain's avatar lain
Browse files

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

parent acbef1eb
Branches
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment