about summary refs log tree commit diff
path: root/app/javascript/flavours/glitch/features/ui/index.js
diff options
context:
space:
mode:
authorThibaut Girka <thib@sitedethib.com>2019-02-10 21:35:04 +0100
committerThibaut Girka <thib@sitedethib.com>2019-02-10 21:44:14 +0100
commit7ed2aeb6e9b0fe4fc7fbe7c76003d1e044c682eb (patch)
tree260080d7d471025a281d5a22d4187b3843493125 /app/javascript/flavours/glitch/features/ui/index.js
parenta963ea67dda17f69ed783b3fbcc91e5ce3858ad3 (diff)
[Glitch] Allow multiple files upload through web UI, including drag & drop
Port 750c67660de753065ec160b4e389ba0dda2f81cc to glitch-soc
Diffstat (limited to 'app/javascript/flavours/glitch/features/ui/index.js')
-rw-r--r--app/javascript/flavours/glitch/features/ui/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/javascript/flavours/glitch/features/ui/index.js b/app/javascript/flavours/glitch/features/ui/index.js
index 602d93832..a19b3abf1 100644
--- a/app/javascript/flavours/glitch/features/ui/index.js
+++ b/app/javascript/flavours/glitch/features/ui/index.js
@@ -186,7 +186,7 @@ export default class UI extends React.Component {
     this.setState({ draggingOver: false });
     this.dragTargets = [];
 
-    if (e.dataTransfer && e.dataTransfer.files.length === 1) {
+    if (e.dataTransfer && e.dataTransfer.files.length >= 1) {
       this.props.dispatch(uploadCompose(e.dataTransfer.files));
     }
   }