Increase Wiki Image upload size

Increase Wiki Image upload size

Jon Witts -
回帖数:3
Plugin developers的头像 Testers的头像
I am looking into if it is possible to increase the binary file upload size in ewiki. I have found the following definition in mod/wiki/ewiki/ewiki.php on line 136:
define ("EWIKI_IMAGE_MAXSIZE", 64 *1024);
Is this the setting that I would need to adjust to allow larger images to be uploaded as binary files?

The file does not seem very well commented, and it would be nice to be able to change these settings through the Manage Activities settings for the wiki activity rather than having to edit text files...

There are a number of other settings in this file too that could be useful to be able to change on the fly; like acceptable file types etc.


回复Jon Witts

Re: Increase Wiki Image upload size

Gavin Stokes -
Worked for me - many thanks. I changed 64 * 1024 to 1024 * 8192. Now it allows images up to approx 8MB. Overkill perhaps, but I shouldn't have any more enquiries from users, asking why their images won't upload wink
回复Gavin Stokes

Re: Increase Wiki Image upload size

Jon Witts -
Plugin developers的头像 Testers的头像
Snap! I changed mine to 8 Mb too. I am just going to keep an eye on the database for a while as these images are stored as binary entries into your database (I think) so you could get quite large tables for the wiki parts of the Moodle database...