This question about Using an extension: Answered

Uploading files with fcgi enabled and getting MaxRequestLen error

While trying to upload an image file that was about 700 KB, I kept getting an error. The server log recorded an error that said:
mod_fcgid: HTTP request length 139258 (so far) exceeds MaxRequestLen

This was even though I had set ATTACHFILESIZELIMIT in SitePreferences to 10000.

Researching this, I discovered that fcgi has it's own de facto file upload limit. It can be over-ridden by adding this to your foswiki apache configuration file:
<IfModule mod_fcgid.c>
# to get around upload errors when uploading images increase the MaxRequestLen size to 15MB
  MaxRequestLen 15728640


Here's documentation of the fcgi MaxRequestLen setting which mentions this issue: -- LynnwoodBrown - 01 Feb 2012



QuestionForm edit

Subject Using an extension
Extension FastCGIEngineContrib
Version Foswiki 1.1.4
Status Answered
Related Topics
Topic revision: r1 - 01 Feb 2012, LynnwoodBrown - This page was cached on 20 Mar 2019 - 18:31.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy