`npm install @lerealfede/uploadstuff`
npm install @lerealfede/uploadstuffnpm install @lerealfede/uploadstuff
shouldFileUpload?: (file: File) => FileError | null;
`
(same signature and behaviour as react-dropzone validator https://react-dropzone.js.org/)
Add onBeforeUpload to the UploadDropzone:
`
onBeforeUpload?: (file: File) => Promise;
`
return: null to exclude a file or File that should be update.
Unlike shouldFileUpload this accept async function and can also modify the file before the upload.
Add uploadLabel to UploadDropzone:
`
uploadLabel?: string;
``