A search on here comes across $CGI::POST_MAX. Seems easy enough but I have a few questions. By the way, I have a CGI form that lets users upload files.
Is this is bytes or kb? Speaking of images (I allow .doc, .html and some image formats to be uploaded), I'm concerned about bandwidth. What do YOU think a fair size would be to restrict to?
What happens if the file they attempt to upload is greater than that of which I limited? Will the script die? I'd like to control this error if I could using something like if (size is to big) { print the size is to big; exit}, for a cleaner death error.
$CGI::POST_MAX. Can this be $CGI::$max_num and still work?
Last but not least, I have multiple file uploads on a given screen and a single MB restriction would limit the TOTAL size I'm assuming. Is there an easy yet safe way to restrict file sizes on a specific variable/filehandle?
Thanks for all your help.