3 ms·
This could be useful to validate large files after downloading them, e.g. ISO files for Linux distributions--however that goes out the window with the 10MB size
by thirsteh 15y ago
This could be useful to validate large files after downloading them, e.g. ISO files for Linux distributions--however that goes out the window with the 10MB size limit.
Why the limit? Does it take too long to compute hashes for larger files?
- chadkeck 15y agoAbsolutely agreed. It is due to the immaturity of the browser implementations, which will hopefully be fixed soon. It regularly crashes(!) Chrome on "large" files; thus, the limitation.
- antimatter15 15y agoYou could split up the file chunks by reading in sections (blob.webkitSlice and mozSlice) as array buffers and sending them to a worker object. Then you could process those in chunks with WebWorkers (or WebGL) and have a progress indicator.