Loading...
 
Features / Usability

Features / Usability


Way to limit wiki image upload sizes?

posts: 73
Greetings. I was wondering if anyone knows a way to put a cap on the file sizes of images uploaded via the wiki. I'd like for my users to be able to upload images to their wikis, but I'd also like to keep the file sizes down. I saw something in the image gallery about some php.ini settings, but I'm on a managed server and don't have that level of access. Is there a way to limit wiki img upload sizes from within the admin menus on tikiwiki?
posts: 1092
No other answer yet than playing with php conf - like described in the big uploads recipe page - you can try to do sone conf in .htacess or to call some init_set in tiki-setup.php if your hosting allows that

posts: 3660 United States

You could try editing the tiki-editpage.tpl file to define a smaller size. Look for the line:

<input type="hidden" name="MAX_FILE_SIZE" value="1000000000" />

(about line 237 or so) and change it to a smaller size.

HTH,

-Rick


> Greetings. I was wondering if anyone knows a way to put a cap on the file sizes of images uploaded via the wiki. I'd like for my users to be able to upload images to their wikis, but I'd also like to keep the file sizes down. I saw something in the image gallery about some php.ini settings, but I'm on a managed server and don't have that level of access. Is there a way to limit wiki img upload sizes from within the admin menus on tikiwiki?


Upcoming Events

No records to display

Menu