O'Reilly logo

Designing with Progressive Enhancement: Building the Web that Works for Everyone by Maggie Costello Wachs, Scott Jehl, Patty Toland, Todd Parker

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter Nineteen. File Input

As websites expand their content-sharing and collaboration features, users are electing to upload files—photos, videos, documents, even secure data—and store them via web applications in “cloud”-based systems instead of locally on their own computers. Common applications that rely on file uploading from a web browser include photo or video sharing sites like Flickr or YouTube, social networking sites like Facebook, and web-based productivity suites like Google Docs.

Conveniently, HTML provides a native form control to access local files: a standard input element with the type set to file. The file input renders with a text field for feedback and a button that launches a standard operating-system dialog box to allow ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required