disable fs api because it breaks directory upload
This commit is contained in:
parent
955cb3c55f
commit
8c3f890a6b
|
@ -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(() => {
|
||||||
|
|
Reference in New Issue