File Upload Box
Sometimes, users need to upload their own files, the file upload box looks similar to other text fields, but it also contains a browse button. Visitors can choose which file to upload by entering the path of the file to be uploaded or by clicking the browse button. Code format: property Explanation: attribute interpretation: Type=" The file "Definition files upload box; The name attribute defines the file upload box names, and to ensure accurate data acquisition, you must define a unique name; The Size property defines the width of the File upload box, in which the number of characters is the maximum of the input. MaxLength property defines the character count.
Attention:
To make the file upload successful, the following points are to be achieved:
- The INPUT type=file element must appear inside the FORM element.
- The value of the NAME Tag property must be specified for the INPUT type=file element.
- The value of the FORM element METHOD label property must be set to post.
- The value of the FORM element ENCTYPE Tag property must be set to Multipart/form-data.
HTML file upload box input tag