Yuvaleros / material-ui-dropzone

A Material-UI file upload dropzone
MIT License
483 stars 248 forks source link

Show error message, when files are not accessible #322

Open oschwede opened 2 years ago

oschwede commented 2 years ago

Description

The dropzone component reads from the selected file to gather and display additional information about the selected file(s). Errors thrown while reading lead to react crashing. Those kind of errors are neither catched, nor catchable by the parent component.

This PR:

Related:

Type of change

How Has This Been Tested

On Linux:

Alternatively you can try uploading a very large file, e.g. a few GB. This also results in a FileReader error Test Configuration:

Checklist