Skip to content

Commit

Permalink
Fixed #2363: Fileupload do not allow multiple files if multiple=false (
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware committed Nov 3, 2021
1 parent 9c1d75f commit a8a13fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/fileupload/FileUpload.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ export class FileUpload extends Component {
event.preventDefault();

let files = event.dataTransfer ? event.dataTransfer.files : event.target.files;
let allowDrop = this.props.multiple || (files && files.length === 1);
let allowDrop = this.props.multiple || (files && files.length === 0);

if (allowDrop) {
this.onFileSelect(event);
Expand Down

0 comments on commit a8a13fd

Please sign in to comment.