Input Type=File
 
End Tag: Omitted
Support Key: 2 | 3 | 3.2 | 4 | IE4B2 | M | N2 | O3.5
What is it?
Attributes
Tag Example
Parent/Content Model
Tips & Tricks
Browser Peculiarities
= Index DOT Html by Brian Wilson [indexdot@blooberry.com] =
Main Index | Element Tree | Element Index | HTML Support History


What is it?
FILE is a TYPE attribute value to the INPUT element for FORMs. It allows the user to enter a filename that can be used as input for the form. To allow this, the author must specify a new ENCTYPE attribute value in the FORM element: ENCTYPE="multipart/form-data"

Common Attributes
%Core%
2 | 3 | 3.2 | 4 | IE4B2 | M | N | O
%Events%
2 | 3 | 3.2 | 4 | IE4 | M | N2 | O
%Language%
2 | 3 | 3.2 | 4 | IE4 | M | N | O
%Data%
2 | 3 | 3.2 | 4 | IE | M | N | O

Specific Attributes
Accept
2 | 3 | 3.2 | 4 | IE | M | N | O
Required? No
Description:
This attribute specifies the MIME types that the form processing server and script should correctly handle. A browser may use this information to filter out non-conforming files when prompting a user to select files to upload.
Values:
Comma-separated list of MIME types.
Accesskey
2 | 3 | 3.2 | 4 | IE4B2 | M | N | O
Required? No
Description:
This is a method of giving access/focus to an active HTML element using a keyboard character. This is a common GUI paradigm also known as a "keyboard shortcut" or "keyboard accelerator" A single character is used as the value of this attribute. In addition, a platform-dependent key is usually used in combination with the ACCESSKEY character to access the functionality of the active field.
Values:
A single, case-insensitive alphanumeric character from a browser's character set.
Disabled
2 | 3 | 3.2 | 4 | IE4B2 | M | N | O
Required? No
Description:
This is a stand-alone attribute which indicates the element is initially non-functional.
Values: NA
Name
2 | 3 | 3.2 | 4 | IE4B2 | M | N2 | O3.5
Required? Yes
Description:
This is a required attribute that associates a symbolic name to the field for submittal to the form processing script.
Values: Alphanumeric characters.
Readonly
2 | 3 | 3.2 | 4 | IE4B2 | M | N | O
Required? No
Description:
This is a stand-alone attribute which tells the browser that content in the field may not be modified by the reader.
Values: NA
Tabindex
2 | 3 | 3.2 | 4 | IE4B2 | M | N | O
Required? No
Description:
"Tabbing" is a method of giving access/focus to an active HTML element using a standard keyboard sequence. All the active elements in a document can be cycled through using this sequence (ex: Windows TAB key.) The order of the active elements in this cycle is usually the order they occur in the document, but the TABINDEX attribute allows a different order to be established. The use of this attribute should create the following tabbing order cycle if the browser supports the attribute:
  1. Active elements using the TABINDEX attribute with positive integers are navigated first. Low values are navigated first.
  2. Active elements not specifying any TABINDEX attribute
Those elements carrying a DISABLED attribute or using negative TABINDEX values do not participate in the tabbing cycle.
Values: Positive or negative integers.
Type
2 | 3 | 3.2 | 4 | IE4B2 | M | N2 | O3.5
Required? Yes*
Description:
* This is the required TYPE attribute for this INPUT mechanism. From the strict view, the TYPE attribute is not required.
Values: FILE
Value
2 | 3 | 3.2 | 4 | IE | M | N | O3.5
Required? No
Description:
This is a required attribute that gives the path to the file to be uploaded.
Values: An absolute or relative URL.
Example
<form>
   <input TYPE="file" NAME="filename">
</form>
Parent Model
%In-line Parent% | %Block Parent%
Content Model
This element does not accept any content.
Tips & Tricks Browser Peculiarities
Boring Copyright Stuff...