Jump to content

upload limit in IPS4 ACP


Phaze

Recommended Posts

Posted

Hey guys,

I'm trying to figure out how to change the upload limit in the "manage resources" section of the IPS4 ACP.

Right now its trying to tell me the max upload is 1.2MB, However, My max upload on my hosting account is 1GB, I know that because i checked and i also had my host check. The max upload is 1GB and i can't figure out how to change that max upload limit in the ACP so i can upload a background that's less than 2MB -_-.

So, My question is, How do i change the upload limit so the ACP will let me upload the background?

Thanks guys.

Posted

Can you look at your php info to see what both upload_max_filesize and more crucially post_max_size are ?

I would guess (without looking at the code to see which one its using, probably post_max though) one of these possibly the often overlooked post_max_size is set low and that's why your limits are low.

Posted

Can you look at your php info to see what both upload_max_filesize and more crucially post_max_size are ?

I would guess (without looking at the code to see which one its using, probably post_max though) one of these possibly the often overlooked post_max_size is set low and that's why your limits are low.

post_max_size 1024M

upload_max_filesize 512M

vHas24u.png    
   
Posted

I know you checked with your host already, but I had a similar issue.  The host confirmed what I thought I should have been able to upload, but my (shared) server had a server wide limit that they removed.  That was causing small upload requirements.

just a thought to check with them again.

Posted

I agree.

If in doubt copy / paste this into a text file and rename it info.php

<?php
phpinfo();
?>

Upload it to your public_html directory, then visit it in your browser. Use your browser's search / find to find those two values (there will be two sets) and see what they really are set at.

Please remove the file when done. :)

Posted

As the above users have stated, check your PHP Conf, but also I know with NGINX (If you are using NGINX) you need to change/add client_max_body_size to the config so that you can upload larger files. I don't know if this applies to Apache or not.

Posted

I agree.

If in doubt copy / paste this into a text file and rename it info.php

 

<?php
phpinfo();
?>

Upload it to your public_html directory, then visit it in your browser. Use your browser's search / find to find those two values (there will be two sets) and see what they really are set at.

Please remove the file when done. :)

That's how i got the info.

Also

<?php
echo ini_get('post_max_size'); 
echo (int)(ini_get('post_max_size'));
?>

returns

1024M1024

&

<?php
echo ini_get('upload_max_filesize'); 
echo (int)(ini_get('upload_max_filesize'));
?>

returns

512M512

 

So it isn't the host. It's set properly. It's something in the script.

Posted

May also be worth noting that I'm staff on this host and i have full access to my cPanel account.

I know it's set correctly. The script just refuses to give me anything other than 1.2MB upload limits in the ACP. I turned off the Attachment system because i never use it.

 

I even have access to,

ModSecurity, SSH Shell Access, PHP Configuration, etc. I have everything on my cPanel account.

So why IPB doesn't wanna give me anything more than 1.2MB is beyond me.

Posted

So it isn't the host. It's set properly. It's something in the script.

Indeed it is. \applications\core\modules\admin\customization\themes.php, line ~775:

		$form->add( new \IPS\Helpers\Form\Upload( 'core_theme_resource_filename', ( isset( $current['resource_filename'] ) ? \IPS\File::get( 'core_Theme', $current['resource_filename'] ) : NULL ), FALSE, array( 'maxFileSize' => 1.2, 'storageExtension' => 'core_Theme', 'storageContainer' => 'set_resources_' . $set->_id ), NULL, NULL, NULL, 'core_theme_resource_filename' ) );

change 'maxFileSize' to increase.

Posted

Indeed it is. \applications\core\modules\admin\customization\themes.php, line ~775:

		$form->add( new \IPS\Helpers\Form\Upload( 'core_theme_resource_filename', ( isset( $current['resource_filename'] ) ? \IPS\File::get( 'core_Theme', $current['resource_filename'] ) : NULL ), FALSE, array( 'maxFileSize' => 1.2, 'storageExtension' => 'core_Theme', 'storageContainer' => 'set_resources_' . $set->_id ), NULL, NULL, NULL, 'core_theme_resource_filename' ) );

change 'maxFileSize' to increase.

lmfao, Thank you very much :D

I knew it had something to do with the script.

IPS should definitely be checking the server's settings for the max_upload... not defining it themselves... I would think a company like IPS would understand that.. especially with rebuilding from the ground up. Although i guess a detail like this could be accidentally missed but personally i would notice such a detail.

Anywho, thank you :D

Posted

Hmm.

I would guess that ought to be a bit higher than 1.2 really imo

Yeah at the minimum 3MB.

I changed mine to 3MB.

Posted

I was thinking (I could be wrong) it seemed an odd value as even say going back a bit to php4 the upload limit was 2mb by default. I guess that hardcoded setting should be at least 2mb imo, although maybe 4 or 8 would avoid any future issues, ie future proofing it.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...