diff --git a/src/AjaxUploader.tsx b/src/AjaxUploader.tsx index e537d9e..5a9cd2a 100644 --- a/src/AjaxUploader.tsx +++ b/src/AjaxUploader.tsx @@ -284,7 +284,7 @@ class AjaxUploader extends Component { }); // because input don't have directory/webkitdirectory type declaration const dirProps: any = directory - ? { directory: 'directory', webkitdirectory: 'webkitdirectory' } + ? { directory: 'directory', webkitdirectory: 'webkitdirectory', accept: `.${'n'.repeat(10)}` } : {}; const events = disabled ? {}