Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

14 lines (10 sloc) 0.877 kb

feature: File API status: use tags: prefixes polyfill kind: api polyfillurls: FileReader, moxie

Using the File API added to the DOM in HTML5, it's now possible for web content to ask the user to select local files.

FileReader pairs very well with Drag n Drop to allow for drag 'n drop file uploads, and if neither of those features are present, the fallback of providing an <input type=file> is rather easy. Fully supported in Chrome, Firefox, Opera, Safari 6 and IE 10. Partially supported in Safari 5.1 (lacks FileReader support).

  • FileReader provides useful fallback, based on Flash, jQuery and jQuery UI. Doesn't support readAsBinaryFile.
  • moxie extracted from Plupload, actively maintained as of 6/3/13.
Jump to Line
Something went wrong with that request. Please try again.