Skip to content

Instantly share code, notes, and snippets.

@rnicholus
Last active April 8, 2016 15:34
Show Gist options
  • Save rnicholus/10930008 to your computer and use it in GitHub Desktop.
Save rnicholus/10930008 to your computer and use it in GitHub Desktop.
MadJS: File API presentation abstract

Getting To Know the File API

The File API is supported in all modern browsers. The W3C spec allows you to upload files via XHR/ajax, read/manipulate files, and, in some cases, access the filesystem. This is all native to the browser, so no need for ActiveX, Flash, or Java! In this presentation, I'll cover the following:

  • What does this spec provide?
  • What are File and Blob objects?
  • Reading files
  • Manipulating blobs and creating your own
  • Handling dropped files and folders
  • Handling files and folders via <input type="file">
  • Uploading files via ajax/xhr
  • What if the browser doesn't support the File API?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment