Setting the HTML input element's type attribute to "file" will render a file upload field in a web <form>. This allows a user to browse their computer for a file to upload. The user places their selected file in the file field and continues filling out your form and all data can be parsed at once when they press submit.
Browse for a file to upload:
File Upload Tip: In order to move files to the server the <form> enctype attribute must be set to "multipart/form-data". The image will not upload if you do not set the <form> tag's enctype correctly for handling file upload. Forms by default handle data using the "application/x-www-form-urlencoded" data encoding type.
type - specify the type of input
name - specify the file's name that your form parsing script will access
Possible Values: "short descriptive name"
accept - suggest the file types that will be accepted
Possible Values: "comma separated list of valid MIME types"
disabled - specify that the input be disabled
Possible Values: "disabled"
global attributes - global core attributes
See: list of global attributes
form - set a relationship between the input and a form
Possible Values: "a form's id attribute value"
autofocus - specify that the input receive focus when page is loaded
Possible Values: "autofocus"
multiple - specify that multiple files can be selected for upload
Possible Values: "multiple"
required - specify that the input is a required form field
Possible Values: "required"
global event handlers - global event handler attributes
See: list of global event handlers