Full width home advertisement



Post Page Advertisement [Top]

Giving users access to upload file on your website
, you need to use a file upload box, also known as a file select box. This is also formed using the <input> element and type attribute is set to file.

Following is the list of important attributes of file upload box:

To give a name to the control which is sent to the server to be recognized and get the value.
Shows the types of files that the server accepts.


Here is example HTML code for a form with one file upload box:

<!DOCTYPE html>



<title>Scholars Globe File Upload Box Example</title>




Image File Upload: <input type="file" name="fileupload" accept="image/*" />


Video File Upload: <input type="file" name="fileupload" accept="video/*" />


Audio File Upload: <input type="file" name="fileupload" accept="audio/*" />




No comments:

Post a Comment

Bottom Ad [Post Page]

| Designed by Colorlib