HTML5 Tip - Drag and Drop hard drive files to a webpage!
Feb 01, 2011, 21:32 (0 Talkback[s])
How to Help Your Business Become an AI Early Adopter
[ Thanks to An Anonymous Reader for
this link. ]
"In previous blog entries, I shared HTML5 code examples for drag
& drop, Geolocation, contenteditable and localStorage. Today, I
will share a simple app that provides a code example of FileReader,
which is part of the File API specification of HTML5.
"As in my previous HTML5 examples, I'm seeking to create a
simple but useful demonstration that exercises HTML5 in a novel
way. My goal is to not only demonstrate the HTML5 API, but to give
examples on how a developer may actually implement the API in a
useful and innovative manner. "Accessing the local file system from
a web page has been greatly simplified in HTML5, using the File
API. The File specification provides an API for representing file
objects in web applications, as well as programmatically selecting
them and accessing their data. The File API includes:"