> <2cents> > I would highly appreciate if an "upload" could determine the > size of the file before actually uploading it and reject the > file if it's larger then the given limit, to reduce traffic.
HTML/HTTP doesn't support that, IMHO. The <input type="file"...> tag just grabs the file and starts sending it. The server has no clue how large the file is until the entire thing arrives. (Remember the file and everything else in the form is transmitted as a single MIME-format stream.) And client-side script has no access to the client's file system, so you can't get the size of the file that way. -- Tim Slattery [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]