From owner-freebsd-questions Mon Aug 12 15: 3:51 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6461637B400 for ; Mon, 12 Aug 2002 15:03:49 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4DE3643E42 for ; Mon, 12 Aug 2002 15:03:48 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk ([IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.5/8.12.5) with ESMTP id g7CM3kTZ010320; Mon, 12 Aug 2002 23:03:46 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.5/8.12.5/Submit) id g7CM3foe010319; Mon, 12 Aug 2002 23:03:41 +0100 (BST) Date: Mon, 12 Aug 2002 23:03:41 +0100 From: Matthew Seaman To: "H. Wade Minter" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Apache content-length issue Message-ID: <20020812220341.GA10183@happy-idiot-talk.infracaninophi> References: <20020812171320.G11254-100000@bunning.skiltech.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020812171320.G11254-100000@bunning.skiltech.com> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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