[caption id="attachment_595" align="alignleft" width="300"]
Increase the Maximum File Upload Size[/caption]
By default the WordPress gives the uploading limit around 2 mp size. This does not nowadays, because even a minute movie with HD takes much heavy size file. In this post, I will give you some tricks to increase the maximum file upload size in WordPress.
Step 1: Take your theme functions.php file
Just add the following code into that,
Step 2: Create or Edit php.ini settings
In your root folder, create (If you do not have) a new file called php.ini, add the following code
Step 3: Do some in .htaccess
add the following in your root .htaccess file
Notes:-
If you are in a shared hosting this techniques will not work, In that case you would have to contact your hosting provider to increase the size limit.
Thanks for reading.
By default the WordPress gives the uploading limit around 2 mp size. This does not nowadays, because even a minute movie with HD takes much heavy size file. In this post, I will give you some tricks to increase the maximum file upload size in WordPress.
Step 1: Take your theme functions.php file
Just add the following code into that,
@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );
Step 2: Create or Edit php.ini settings
In your root folder, create (If you do not have) a new file called php.ini, add the following code
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
Step 3: Do some in .htaccess
add the following in your root .htaccess file
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
Notes:-
If you are in a shared hosting this techniques will not work, In that case you would have to contact your hosting provider to increase the size limit.
Thanks for reading.
Post a Comment