Yuvaleros / material-ui-dropzone

A Material-UI file upload dropzone
MIT License
485 stars 245 forks source link

FileReader error when dragging large file into dropzone #268

Open cybertaxi opened 3 years ago

cybertaxi commented 3 years ago

Bug Report

Describe the bug

FileReader error when uploading files that are >2.8GB. But able to upload files that are around 1 GB.

image

Steps to reproduce

Imported the DropzoneDialog component with the following parameters:

<Button onClick={handleOpen}> Upload </Button>
                <DropzoneDialog
                    open={dialogState.open}
                    onSave={handleSave}
                    filesLimit={10}
                    clearOnUnmount={true}
                    initialFiles={dialogState.files}
                    showPreviews={true}
                    maxFileSize={8589930194}
                    onClose={handleClose}
                />

Perform a normal drag and drop or click and upload on the component, Managed to upload files that are below 2GB, anything above throws the error from file reader. I tried using react-dropzone and can successfully upload the large file (5GB).

Is there a way to fix or remove the FileReader parsing and just return the File type details? I'm trying to upload the large files with S3 upload SDK.

hmeerlo commented 3 years ago

I have the same problem but I can not get to the root cause of it. Does anybody have an idea?

vishal-wemotive commented 2 years ago

I have the same problem. Please help me with this issue to resolve.