Exception Occurred While Loading Files Not Supported by the Browser
Opened this issue · 0 comments
larvata commented
When loading a file the browser cannot parse, e.g., load a HEIC file on windows chrome.
The following line will raise an exception TypeError: Cannot read properties of undefined (reading 'toLowerCase')
, because the file.type
is empty.
https://github.com/rouftom/react-mui-fileuploader/blob/main/src/FileUpload.tsx#L196C12-L196C12