DEV Community

Discussion on: Everything you'll ever need to know about HTML Input Types

Collapse
 
mahmoudai1 profile image
Mahmoud Ahmed

Additional information for the “file” -

“enctype” attribute should be added to the form element with the value ‘multipart/form-data’ in order to upload the file(s) to the server.

Also, “multiple” attribute is added to the input element in order to allow uploading multiple files.

Thanks for sharing!