Hacker News new | ask | show | jobs
by thirsteh 5385 days 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?

1 comments

Absolutely 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.

You 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.