HTML form file upload
From w3cyberlearnings
Contents |
HTML - File Upload
Input field for file upload is part of the HTML page. File upload is the input tag with the type file. All file upload form required to set the enctype="multipart/form-data".
HTML - Syntax File Upload Input Field
<input type="file" name="my_file"/>
Example 1 TRY-IT
<html> <head> <title>Upload File</title> </head> <body> <form enctype="multipart/form-data"> <input type="file" name="file1"/><br/> <input type="file" name="file1"/><br/> <input type="file" name="file1"/><br/> <input type="file" name="file1"/><br/> <input type="submit" name="submit" value="Upload NOW"/> </form> </body> </html>
Output
- When user clicks on the Choose File, it opens a new window for selecting a file to upload.
Related Link
- Form Hidden Field
- Form Fieldset
- Form File Upload
- Form autocomplete