Local file access with JavaScript

Just an update of the HTML5 features is in http://www.html5rocks.com/en/tutorials/file/dndfiles/. This excellent article will explain in detail the local file access in JavaScript. Summary from the mentioned article:

The specification provides several interfaces for accessing files from a ‘local’ filesystem:

  1. File – an individual file; provides readonly information such as name, file size, MIME type, and a reference to the file handle.
  2. FileList – an array-like sequence of File objects. (Think <input type="file" multiple> or dragging a directory of files from the desktop).
  3. Blob – Allows for slicing a file into byte ranges.

See Paul D. Waite’s comment below.

Leave a Comment