Forums / Cotonti / Support / File Size Limit (PFS & Avatars)

Limiting file size

RaisenBran
#1 2015-04-10 22:57

So I've been editing my Cotonti Siena site for quite some time and as I make theme adjustments I've also been trying to make system adjustments. For whatever reason I cannot upload files larger than 8.4MB. In the admin settings I can put 10MB or 40MB or whatever. However it always maxes out at 8.4MB. So I've been looking through the code to find where the limit is. I've researched this problem on the forums already but I haven't found a solution.

 

I want to give the users the ability to upload larger files and videos. I'm talking a 300MB video and a total PFS of 2GB for example. I don't understand why these restrictions were put on Siena. I've used Sedito and Cotonti for years and have never figured that someone would actually put on a 8MB limit. There is the ability to upload videos to Cotonti but what I don't understand is when has anyone ever uploaded a video that maxes at 8MB? I'm pretty sure that's like a 3 second video.

 

Also, I have an avatar that is 1.44MB and I get this error when I try to upload it: http://prntscr.com/6s7m5s So there is also a file restriction on avatars?

 

Maybe there is something I'm doing wrong. I'm not sure. So any help will be apreciated.

Dayver
#2 2015-04-11 04:15

You can have two places where limited to uploading large files:

  • The first in admin panel your site in user group in the parameters "Max size for a single file in Personal File Space (KiB):" or "Max size of all files together in Personal File Space (KiB):";
  • Second in parameters php hosting - post_max_size and upload_max_filesize or memory_limit. For see his value try to create a blank php file with one line <? php phpinfo (); and after upload it to the site and call his in a browser and see what values haven in this param in you hosting
Pavlo Tkachenko aka Dayver
This post was edited by Dayver (2015-04-11 15:29, 8 years ago)
RaisenBran
#3 2015-04-12 17:17

So it's not a problem in the admin panel. I know how to change it. But like I said 8.4MB is the max it allows. I tried what you said and this is the problem yes? How would I go about changing this?

post_max_size 8M 8M

Here is some more possible revelant info:

max_execution_time 300 300
max_file_uploads 20 20
max_input_nesting_level 64 64
max_input_time 60 60
max_input_vars 1000 1000
memory_limit 128M 128M
upload_max_filesize 120M 120M
upload_tmp_dir no value no value

Left is local. Right is max.

 

So this isn't a problem with Cotonti. I just find it weird how I can upload a large file in Cpanel and it will do just fine. But when I go to cotonti and upload files it can't be that large.

 

So I found out where my configuration file is but I go into Cpanel and the directory doesn't exist.

Loaded Configuration File

/usr/local/lib/php.ini

 

Can I just make this directory and download a sample file, and then tweak it?

This post was edited by RaisenBran (2015-04-12 18:09, 8 years ago)
Dayver
#4 2015-04-13 08:42
Find in google how you can change this params in htaccess file in root dir your site or in cpanel on your hosting server who manage param from php.ini
Pavlo Tkachenko aka Dayver
RaisenBran
#5 2015-04-19 22:38

I had to contact my web host since they handle the file. Thank you for your help although.