[Glitch] Allow multiple files upload through web UI, including drag & drop

Port 750c67660d to glitch-soc
This commit is contained in:
Thibaut Girka
2019-02-10 21:35:04 +01:00
parent a963ea67dd
commit 7ed2aeb6e9
4 changed files with 31 additions and 12 deletions

View File

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