Yuvaleros / material-ui-dropzone

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

Add a prop that disables loading files in memory #333

Open HristoKolev opened 2 years ago

HristoKolev commented 2 years ago

Feature Request

Describe the problem related to this feature request

First, I just like you to know that I really like this package, the UX it provides integrates seamlessly with the other MUI components.

I have a use case when I'm supposed to allow users to upload huge excel files. The problem is that this package reads the contents of the files to memory. I'm only interested in the File object and the memory pressure will become a problem on some devices.

Describe the solution you'd like

Add a prop that makes it so files are not read in memory, it would disable all features that require the file to be read like image previews.

Describe alternatives you've considered

The only alternative is to not use the package.