We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29c95a6 commit 55edfb1Copy full SHA for 55edfb1
src/AjaxUploader.tsx
@@ -81,8 +81,9 @@ class AjaxUploader extends Component<UploadProps> {
81
}
82
83
if (directory) {
84
- files = await traverseFileTree(Array.prototype.slice.call(items), (_file: RcFile) =>
85
- this.isNativeDirectory() ? true : attrAccept(_file, this.props.accept),
+ files = await traverseFileTree(
+ Array.prototype.slice.call(items),
86
+ (_file: RcFile) => this.isNativeDirectory() || attrAccept(_file, this.props.accept),
87
);
88
this.uploadFiles(files);
89
} else {
0 commit comments