I'm using https://yuvaleros.github.io/material-ui-dropzone/ and I'm trying to make it so that it doesn't allow uploading duplicates of previously uploaded files.
I've tried on onchange
function that removes the file from the <input type="file">
if there's already a file with that name that is embedded into <DropzoneArea>
but I don't know how to remove this graphic:
I've also looked at the documentation of the Material UI Dropzone, without any luck
Material-ui-dropzone
If you raise an issue detailing what you need perhaps we can discuss and schedule it for development. One possibility would be that we provide a way toreject
the file from within theonChange
method, – Mice