In this article, You will know about how to Increase Max Upload Size
in PHP or WordPress. It’s depend on your hosting provider that how much
media or file you can transfer at single time. Mostly server allows
maximum 2 MBs that is not enough at all. We will show you the ways which
is helpful to upload any size of file to server.
For PHP, There are two ways to Increase Maximum Upload Size in PHP and WordPress have another option of function.php.
It will increase the maximum upload size from 2MBs to 50MBs.
If any of these technique will not work, Please contact your hosting provider. It’s fully dependent on your hosting plan.
I hope this tutorial will be helpful for you, Please write your comments/suggestions below and read our other PHP/WordPress articles.
Enjoy :)
For PHP, There are two ways to Increase Maximum Upload Size in PHP and WordPress have another option of function.php.
- Increase Max Upload Size using PHP.INI file
- Increase Max Upload Size using .HTACCESS file
- Increase Max Upload Size using function.php (For WordPress user Only)
1. Increase Max Upload Size using PHP.INI file
Generally users are using shared hosting and didn’t get any php.ini file then no worries. Just create one file and give name it php.ini and copy/paste following code and upload it on server root.upload_max_filesize = 50M
post_max_size = 50M
max_execution_time = 300
2. Increase Max Upload Size using .HTACCESS file
If you don’t want to change in php.ini file there is another way via .htaccess, Just copy/paste below code in .htaccess file and upload it on document root directory.php_value upload_max_filesize 50M
php_value post_max_size 50M
php_value max_execution_time 300
php_value max_input_time 300
If you are using WordPress there is another method to change via function.php of theme.
3. Increase Max Upload Size using function.php (For WordPress Only)
We are saving our configuration settings in function.php file. Just add below code in that file and enjoy upload size upto 50MBs.@ini_set( 'upload_max_size' , '50M' );
@ini_set( 'post_max_size', '50M');
@ini_set( 'max_execution_time', '300' );
If any of these technique will not work, Please contact your hosting provider. It’s fully dependent on your hosting plan.
I hope this tutorial will be helpful for you, Please write your comments/suggestions below and read our other PHP/WordPress articles.
Enjoy :)
Thanks for the guide!
ReplyDeleteThat was incredibly useful
Check Your Wordpress Here
get more
ReplyDeleteRead More Here
visit here
this link