diff options
author | Thibaut Girka <thib@sitedethib.com> | 2019-02-10 21:35:04 +0100 |
---|---|---|
committer | Thibaut Girka <thib@sitedethib.com> | 2019-02-10 21:44:14 +0100 |
commit | 7ed2aeb6e9b0fe4fc7fbe7c76003d1e044c682eb (patch) | |
tree | 260080d7d471025a281d5a22d4187b3843493125 /app/javascript/flavours/glitch/features/ui | |
parent | a963ea67dda17f69ed783b3fbcc91e5ce3858ad3 (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')
-rw-r--r-- | app/javascript/flavours/glitch/features/ui/index.js | 2 |
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)); } } |