Skip to content

Commit

Permalink
* file-selector: set default maxFileSize.
Browse files Browse the repository at this point in the history
  • Loading branch information
YonLJ committed Nov 6, 2024
1 parent ecb7f4a commit 34cea6e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/file-selector/src/components/file-selector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ export class FileSelector<P extends FileSelectorProps = FileSelectorProps, S ext
: maxFileSize;
}

if (!props.maxFileSize) {
props.maxFileSize = '100MB';
}

super(props);
this.state = {
files: (props.defaultFiles || []).map(x => this.constructor.getInfo(x)),
Expand Down

0 comments on commit 34cea6e

Please sign in to comment.