The HTML markup to do file upload is the INPUT element with "file" set
as the TYPE. You can read the specifications on it here.
http://www.w3.org/TR/html4/interact/forms.html
Unfortunately it does not support a file size limit with an attribute
on that markup element. That would be an obvious feature, but perhaps
it is not allowed due to security concerns although the size should be
a safe value to expose to an untrusted website. This is touchy because
it is one of the few features of a web browser which gives you access
to the user's file system.
I just browsed a site I use which has an upload features and used
Firefox's Firebug add-on to browse the DOM for the upload form and it
did not show the size of the file I had selected.
If there is a way to limit file size for uploads I would also like to
know it.
Brennan Stehling
http://brennan.offwhite.net/blog/