Tongfamily.com

Tong Family Tips and Tricks

Tongfamily.com header image 2

Wikka Wiki File Upload Size Limit

June 2nd, 2008 · 2 Comments · Wikka Wiki

It isn’t well documented. In fact, it isn’t documented at all, but the http://wikkawiki.org/FilesAction method allows you to put {{files}} into any Wikki page and then a registered user can upload things. It has a hidden parameter for 2MB files and limits the files which sounds smart…

$max_upload_size = “21048576”;
$allowed_extensions = ‘gif|jpeg|jpg|jpe|doc|xls|...’

The solution is a bit messy, but you have to manually update the files in actions/files.php to fix this. We set ours to 100MB upload limit and added XLS and DOC files. In the actual code in actions/files.php, I found

$max_upload_size = “2097152”; // 2 Megabyte

So it was easy to change and there was no allowed extensions at all. The main issue is this the only limit at Bluehost.com where you have to edit the php.ini file change the upload there as well, edit that in the root with

Please note that PHP itself imposes a limit on file-uploads. You can find two parameters and this time, it is in megabytes, so 2M:
-start GeSHi->

bq, upload_max_filesize = 100M;
post_max_size = 110M;

Tags: ······························

2 responses so far ↓

  • 1 Nils Lindenberg // Jun 16, 2008 at 5:14

    Hi Tongfamily,

    unfortunately you are right about the upload limit not being documented (typical case of knowing the code too good ;). I will add it when I find the time.

    Next time you see something like this it would be very helpfull for us if you could leave a message at the documentation server (for example at http://docs.wikkawiki.org/FilesActionInfo) so we have a better chance to notice what is missing or could be better documented.

    Greetings,
    Nils Lindenberg (WikkaWiki)

  • 2 Rich // Jun 18, 2008 at 22:26

    @Nils Lindenberg: wow, i’m so honored you left this note. I will definitely document that. it is a great applet you have. we are using it extensively

You must log in to post a comment.