[wikka-community] large limit for files action
Mon Mar 1 13:19:28 GMT 2010
Jens Giesemann wrote on 2010-03-01:
> hello together
> got some additional webspace, therefore i'd like to expand the limit
> for the file size from 2 mb to 128 or 256 mb.
> im running wikka 220.127.116.11, upgrade to 1.2 will be in some weeks the
> upload is admin-only, the download is closed user group.
> have i to expect problems with stability or security?
I cannot say anything about security, but only what I had to do to raise the filelimit to 50MB.
The following php parameters have to be set:
php_value memory_limit 128
php_value upload_max_filesize 50M
php_value post_max_size 50M
In files.php change $max_upload_size to 52428800.
This high memory limit is needed because the function readfile (which is used for fileuploads in wikkawiki) reads the whole file at a time
and therefore must be at least as big as the filesize. I tried to rewrite the file upload to not use readfile but read it block wise, but unfortunately I didn't suceed.
The stability with these settings is quite good. At least I didn't got any complaints (neither from users nor from sysadmins).
Hope that helps,
c/o EMPA, nanotech at surfaces
Tel.: +41/ (0)33 228 2237
More information about the community