Cotonti / Open Source PHP Content Management FrameworkContent Management Framework

Форуми / Cotonti / Support / File Size Limit (PFS & Avatars)

Limiting file size

RaisenBran
#1 10.04.2015 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 11.04.2015 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
Pavel Tkachenko aka Dayver. Гик и веб мастер который делает сайты, увлекается электроникой и очень любит смотреть кино.
О себе: Я злой и страшный серый волк, я в поросятах знааааюююю толк

Відредаговано: Dayver (11.04.2015 15:29, 7 років тому)
RaisenBran
#3 12.04.2015 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?


Відредаговано: RaisenBran (12.04.2015 18:09, 7 років тому)
Dayver
#4 13.04.2015 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
Pavel Tkachenko aka Dayver. Гик и веб мастер который делает сайты, увлекается электроникой и очень любит смотреть кино.
О себе: Я злой и страшный серый волк, я в поросятах знааааюююю толк
RaisenBran
#5 19.04.2015 22:38

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