Name

<input type=file> — NN: 2, 3, 4 - MSIE: 2, 3, 4, 5 - HTML 4 - WebTV - Opera3

Synopsis

                     <input type=file>
                  

Allows users to submit external files with their form submission. It is accompanied by a “browse” button when displayed in the browser.

Attributes

accept= MIME type

Specifies a comma-separated list of content types that a server processing the form will handle correctly. It can be used to filter out nonconforming files when prompting a user to select files to send to the server.

name= text

Assigns a name to the control.

value= text

Specifies the initial filename to be submitted.

Get Web Design in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.