We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does material-ui-dropzone support custom error messages?
I need to validate whether a file/files were uploaded. Does this package support error handling in terms of some props that we could input to?
The text was updated successfully, but these errors were encountered:
@Tulean You can use these 4 methods to handle each case you can use it like this:
<DropzoneArea acceptedFiles={acceptedFileFormat} onChange={handleFileChange} onDrop={handleFileDrop} filesLimit={1} maxFileSize={6000000} showFileNames getFileAddedMessage={(fileName) => `${fileName} ADDED!`} getDropRejectMessage={(rejectedFile) => `${rejectedFile} REJECTED!`} getFileRemovedMessage={(fileName) => `${fileName} REMOVED!`} getFileLimitExceedMessage={(filesLimit) => `:filesLimit ${filesLimit}`} />
Sorry, something went wrong.
No branches or pull requests
Bug Report
Describe the bug
Does material-ui-dropzone support custom error messages?
Steps to reproduce
I need to validate whether a file/files were uploaded. Does this package support error handling in terms of some props that we could input to?
The text was updated successfully, but these errors were encountered: