Name
<input type=file>
Synopsis
<input type=file>
Create a file-selection element within a
<form>.
Attributes
-
accept=list Specify list of MIME types that can be accepted by this element.
-
accesskey=char Define the hot-key character for this element.
-
disabled Disable this control, making it inactive.
-
maxlength=n Specify the maximum number of characters to accept for this element.
-
name=string Specify the name of the parameter that is passed to the form-processing application for this input element (required).
-
notab Specify that this element is not part of the tabbing order.
-
onblur=applet Specify an applet to be run when the mouse leaves this control.
-
onchange=applet Specify an applet to be run when the user changes the value of this element.
-
onfocus=applet Specify an applet to be run when the mouse enters this control.
-
readonly Prevent user modification of this element.
-
size=n Specify the number of characters to display for this element.
-
tabindex=n Specify this element’s position in the tabbing order.
-
taborder=n Specify this element’s position in the tabbing order.
-
value=string Specify the value of the parameter sent to the form-processing application if this form element is selected (required).
See Chapter 6 for more information on using forms.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access