*

nomafo

  • *
  • 2 posts
Media file size won't change
« on: May 20, 2026, 07:50:04 PM »
I'm having trouble with setting up a higher limit for media files, when user uploads a photo.

The limit now is 3072kb


I have checked and double checked my hosting setting and there it is 3GB (yes, gigabyte)

Check the image i attached. It says i can go higher in kb, but i keep getting the same error if i change it:
The error is: You cannot set the maximum file size higher than allowed in the PHP configuration: 3072 KB

I have set up a php.ini file with higher kb, but also that has no effect.

I contacted my hosting, they confirm I can go as high as 3 GB, but within osclass it keeps saying 3072kb.



So has any of you an idea where to look for a fix?

*

MB Themes

Re: Media file size won't change
« Reply #1 on: May 21, 2026, 04:10:44 PM »
Osclass reads the upload limit directly from the active PHP configuration, and PHP is still reporting a limit of 3072 KB (3MB), even if your hosting package allows up to 3GB.

Most likely causes are:

  • Wrong php.ini file edited
  • Website using different PHP version than expected
  • PHP-FPM/Apache restart missing
  • .user.ini or .htaccess overriding values
  • Nginx client_max_body_size
  • Hosting panel settings not applied to the actual website runtime

First thing to check is what PHP actually reports to the website.

Create a file called phpinfo.php in your website root with:

Code: (php) [Select]

<?php phpinfo(); 
Open it in browser and check these values:
Code: [Select]
upload_max_filesize post_max_size memory_limit Loaded Configuration File For example:
Code: (ini) [Select]
upload_max_filesize = 64M post_max_size = 128M memory_limit = 256M If `phpinfo()` still shows:
Code: [Select]
upload_max_filesize = 3M then the new configuration is not being loaded by PHP yet. You can also try: Apache / .htaccess
Code: (apache) [Select]
php_value upload_max_filesize 64M php_value post_max_size 128M php_value memory_limit 256M .user.ini
Code: (ini) [Select]
upload_max_filesize=64M post_max_size=128M memory_limit=256M Nginx
Code: (nginx) [Select]
client_max_body_size 64M; then restart nginx/php-fpm. Important: Osclass intentionally blocks values higher than PHP allows. So if PHP reports `3072 KB`, Osclass will not let you set anything higher in Media Settings.
  To get fast support, we need following details: Detail description, URL to reproduce problem, Screenshots