|For a real basic upload, try something similar to |
<form enctype="multipart/form-data" action="some script to handle the form" method="POST">
<input type="hidden" name="MAX_FILE_SIZE" value="max size of upload allowed in bytes eg: 50000" />
Upload: <input name="userfile" type="file" />
<input type="submit" value="Send File" />
The max file upload size must precede the input field for the file. The server side language handles the form. HTML on its on won't process forms. here's a link to forms in a little more depth, and here's the section on uploading.
Hope that helps
My work in progress. I hate JS. :P