~/talk

An introduction to the File API

Talkat Web Directions Code 2013 · 2013-05-02..05-03· [web-platform, web-performance]
slides:none on file

Introduces the DOM input.files list, shows using a FileReader with readAsText, readAsDataURL and readAsArrayBuffer to get a string, a data URL and an ArrayBuffer/Uint8Array, demos extracting JPEG EXIF orientation and rotating the preview, and contrasts data URLs (4 MB photo becomes ~5 MB) with URL.createObjectURL + revokeObjectURL to avoid copies. Covers drag‑and‑drop file access, xhr send(file), and current limits: no full directory traversal and no simple save‑as with a filename; advises polyfills for older IE/Safari.

AI-written summary · about

  1. 0:00Introduction to File API
  2. 1:09Accessing file metadata
  3. 2:31Reading file content
  4. 4:43Data URLs for images
  5. 6:12Binary data access
  6. 8:23Blob URLs and performance
  7. 10:25API limitations and support
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.