[Pmwiki-users] File Upload with big files

Patrick R. Michaud pmichaud
Fri Jan 9 07:20:08 CST 2004


On Fri, Jan 09, 2004 at 10:16:02AM +0100, Klaus Olszowi wrote:
> > Quoting Klaus Olszowi <olszowi at docufy.de>:
> > > I'm new to PmWiKi and I have problems uploading big files (> 500k, 
> > > pdf
> > > for example). The Mozilla 1.5 response 'document contains no data' 
> > > after pressing the upload button.
> 
> The server is in the DMZ connected with an 100MBit line. The server is
> running RH 9. There is no timeout problem, the response of the mozille takes
> 0.1 sec. I changed also the 'LimitRequestBody' to 1024000000.

Hmm, my first inclination was to suspect the LimitRequestBody, since
by default it's distributed with Red Hat 9 with a limit of 512K.  But you've
already taken care of that.  Just to verify...did you restart the httpd 
service after changing the LimitRequestBody?  I often forget that step.

> Can the 'https' protocol can a problem.

I'm not terribly familiar with https: to know if it'd be a problem, but
can you try the upload feature using normal http: to perhaps eliminate 
that as a problem?  Also make sure that "SSLOptions +StdEnvVars" is set
for .php files or for the directory containing your wiki installation.

> Maybe my local.php file is helpful:
> 
> $UploadMaxSize = 10000000;
> $UploadExtSize['gif']  = 10000000;
> $UploadExtSize['jpeg'] = 10000000;
> $UploadExtSize['jpg']  = 10000000;
> [...]

If you set $UploadMaxSize to 1000000, it's not necessary to set the
sizes for the individual extensions unless they are different from
$UploadMaxSize.

Pm



More information about the pmwiki-users mailing list