Re: mod perl installed but not running

André Warnier <[email protected]>
Newsgroups gmane.comp.apache.mod-perl
Message-ID <[email protected]>
mike cardeiro wrote:
> 
> ----- Original Message -----
>> From: André Warnier <[email protected]>
>>
>> And it doesn't ?
>> The startup message of your Apache seemed to say that it does..
>>
> 
> Yes, it now is running and I am on my way!
> 
Good, then..

about your wish to limit the size of the files someone can upload,
depending on how much they are already using.

You should look at the documentation of CGI.pm, the "CREATING A FILE UPLOAD FIELD" 
section, and particularly the part about the "hook" function.
I have never tried it, but there should be a way there to interrupt the upload and abort 
the POST processing whenever the read file size goes over your limit.

It doesn't really require mod_perl though, it is part of CGI.pm.

You can also look at $CGI::POST_MAX in the same documentation.
The mere fact that this parameter can be set at the script level, seems to indicate that 
it is dynamic, and that you could set it, at least as long as you have not started parsing 
the POST itself (e.g. not called any param() yet).
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.