Bookmark and Share

HTML - Upload Forms

Use an upload form to allow users to upload pictures, movies, or even their own webpages. An upload form is another type of input form, simply set the type attribute to file.

Advertise on Tizag.com

HTML Code:

<input type="file" />

Upload Form:

Max File Size

To limit the size of the file being uploaded and saving you precious webserver space. We make use of a hidden input field and set a few specific attributes.

HTML Code:

<input type="hidden" name="MAX_FILE_SIZE" value="500" />
< input type="file" />

Max File Size:


The value specified is the maximum allowable KB to be uploaded via this form. A value of 100 will allow a file up to 100kb.



Bookmark and Share




Found Something Wrong in this Lesson?

Report a Bug or Comment on This Lesson - Your input is what keeps Tizag improving with time!

New - Tizag.com Forums!
Recent Forum Topics:

Advertise Here

More Tutorials!
Microsoft Office Tutorials Artist Tutorials