Date: Mon, 12 Aug 2002 23:03:41 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: "H. Wade Minter" <minter@lunenburg.org> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Apache content-length issue Message-ID: <20020812220341.GA10183@happy-idiot-talk.infracaninophi> In-Reply-To: <20020812171320.G11254-100000@bunning.skiltech.com> References: <20020812171320.G11254-100000@bunning.skiltech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Aug 12, 2002 at 05:14:32PM -0400, H. Wade Minter wrote: > I'm getting the following error trying to upload a file via PHP: > > [Mon Aug 12 17:06:17 2002] [error] [client 4.64.113.162] Request > content-length of 492965 is larger than the configured limit of 75000 > > This appears to be an apache issue, not a PHP one, but I can't find any > docs on how the content-length limit gets set to 75000, or how to > disable/change it. There is a LimitRequestBody diretive in the HTTP config that controls maximum content-length: http://httpd.apache.org/docs/mod/core.html#limitrequestbody However, the default setting is '0' -- unlimited. This limit can be set in httpd.conf or in per-directory .htaccess files. The default php.ini file contains: ; Maximum allowed size for uploaded files. upload_max_filesize = 2M so you're probably not running into that as a limit. You might find http://www.php.net/manual/en/features.file-upload.php enlightening. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Tel: +44 1628 476614 Marlow Fax: +44 0870 0522645 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020812220341.GA10183>