You should use CGI.pm, and that has a MAX_UPLOAD setting you can use. That would be the maximum for each upload, not a calculated total.
I don't think you're going to get timeouts with files of the size you mentioned. The security risk is if some bad person uploads a 10GB file, over and over again until your HD is so full that nothing can run. So a maximum of some kind is probably a good idea.
($_='kkvvttuu bbooppuuiiffss qqffssmm iibbddllffss')
=~y~b-v~a-z~s; print
| [reply] |
I'm not sure how it works on IIs, but on linux-apache you can test for the total cumulative size by examing the content_length. I prefer to use this method, because it can stop the upload immediately. But I'm only an amateur at CGI.
if($ENV{CONTENT_LENGTH} > $maxsize){
print "total files too large - must be less than $maxsize bytes";
exit;
}
I'm not really a human, but I play one on earth.
flash japh
| [reply] [d/l] |
Oh Btw, the files that will be uploaded by this script are .html files that are around the size of 55-90 kb each. So 270kb at most will be uploaded. | [reply] |