upload_max_filesize = 2M1 user found helpful
Created a file called php.ini in the root folder.
All it contains is this:
; Maximum allowed size for uploaded files. upload_max_filesize = 40M ; Must be greater than or equal to upload_max_filesize post_max_size = 40M
You might bump up against limits set by your internet provider.
(I got this from the forums myself -- this isn't original)
Log in to cPanel, click on the 'Software' section and click 'Select PHP Version' (see image cpanel1.jpg),
Next click on 'Switch To PHP Options' (circled in the php-selector.jpg image),
Then find the item you want to change and click the value to change it.
Non-Default options will turn green, you will see from the final image (modify.jpg) that I made changes to 'max_input_vars', 'memory_limit', 'post_max_size' and 'upload_max_filesize'.
Don't forget to click the 'Save' button when you have finished..
I Make 'em earn their $1.99/month. (well, made. I'm up to about $10 now that I've added features and the introductory rate has run out)
Do you have anything in your config/site.php file or in your htaccess file that is controlling the upload_max_filesize?
<?php phpinfo(); ?>
Visit it in your browser and see what the max file upload says in there. If it says 2M then your custom php.ini is not doing anything (your host may not allow them for their own safety). You can try creating a/renaming that file as '.user.ini' instead.
If the php info still says 2M, and you have no access to cPanel to edit the PHP settings, then your host simply won't let you change that setting.
You can always try to do ini_set in your index.php in the such as:
Thanks to all.