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.
Written by Nikita Dudnik
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Phantomjs
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#