December 2011
2 posts
4 tags
Introducing filer.js
Some 1300+ lines of code, 106 tests, and a year after I first started it, I’m happy to officially unleash filer.js (https://github.com/ebidel/filer.js); a wrapper library for the HTML5 Filesystem API. Unlike other libraries [1, 2], filer.js takes a different approach and incorporates some lessons I learned while implementing the Google Docs Python client library. Namely, the library...
Dec 27th
41 notes
3 tags
Making file inputs a pleasure to look at
I’ve seen a lot of people ask how to 1.) apply custom styles to a <input type="file"> and 2.) programmatically open the browser’s file dialog with JavaScript. Turns out, the first is a cinch WebKit. The second comes with a couple of caveats. If you want to skip ahead, there’s a demo. Custom file inputs in WebKit The first example on that demo page shows how to style...
Dec 23rd
17 notes