[Lispweb] Re: Allegroserve/Webactions POST filesize limit?
Petter Gustad
gmane at gustad.com
Wed Jul 27 07:12:35 CDT 2005
John DeSoi <desoi <at> pgedit.com> writes:
> On Jul 27, 2005, at 5:18 AM, Petter Gustad wrote:
>
> > Are there any other ways to restrict the file size for uploaded files
> > in Allegroserve? If not then somebody can really kill your server by
> > uploading files which are way bigger than your physical memory.
>
> I don't recall the exact design in AllegroServe, but what you want to
> do read only the headers of the post request and look at the Content-
> Length header. If it is too large or not provided, then kill the
> request and send an error message.
I was hoping there was a hook or a variable one could set to do this
(or that it would read a small chunk of the content and check
MAX_FILE_SIZE).
Petter
More information about the lispweb
mailing list