disable fs api because it breaks directory upload

This commit is contained in:
Karol Wypchlo 2022-02-09 13:38:03 +01:00
parent 955cb3c55f
commit 8c3f890a6b
No known key found for this signature in database
GPG Key ID: B515DE9EEBE241E1
1 changed files with 4 additions and 1 deletions

View File

@ -91,7 +91,10 @@ const Uploader = () => {
} }
}, [uploads]); }, [uploads]);
const { getRootProps, getInputProps, isDragActive, inputRef } = useDropzone({ onDrop: handleDrop }); const { getRootProps, getInputProps, isDragActive, inputRef } = useDropzone({
onDrop: handleDrop,
useFsAccessApi: false,
});
const inputElement = inputRef.current; const inputElement = inputRef.current;
React.useEffect(() => { React.useEffect(() => {