22excw
Last Updated: February 25, 2016
·
933
· nek

CasperJS/PhantomJS vs. html5 File API

If you want to read a part of a file inside one of those environments you should remember two things:<br>
1. Use prefixed file.webkitSlice(start, end)<br>
2. Create new FileReader for every blob you want to read. You can't reuse one FileReader.

The last one was hard to figure out because you can reuse FileReader inside Google Chrome or FireFox.