danialfarid / ng-file-upload

Lightweight Angular directive to upload files with optional FileAPI shim for cross browser support
MIT License
7.87k stars 1.59k forks source link

Error when trying to select multiple files of large size (> 500MB) #2123

Open wholeinsoul opened 5 years ago

wholeinsoul commented 5 years ago

When I try to select multiple files, I get the following error:

GET blob:https://angular-file-upload.appspot.com/00283c9c-ab35-42db-8277-de50bfd14f5b net::ERR_FILE_NOT_FOUND

It is reproducible on the demo page: https://angular-file-upload.appspot.com/ . See the attached image.

Screen Shot 2019-08-29 at 6 29 16 PM

Increasing Upload.defaults.blobUrlsMaxMemory to a large size like 4GB worked but not sure what is the correct limit. My app users may drag/drop hundreds of large files so at some point may be 4GB will fail too. As per chromium.googlesource.com/chromium/src/+/master/storage/browser/… , creating blobs too fast may create this situation. If I could add delay in between creating blobs, that probably may help but ng-file-upload does not have any such option. Any pointers will be helpful. Thanks.