WordPress: Increase Maximum Upload File Size

Depending on the web hosting company you choose and the package you select, each of you will see maximum file upload limit on your Media Uploader page in WordPress. For some it is as low as 2MB which is clearly not enough for media files like (audio / video). Most pictures are under 2MB, so it is fine for just pictures. In this article, we will show you how to increase the maximum file upload size in WordPress.

You can try one of method that I give below.

Functions.php

@ini_set( 'upload_max_size' , '64M' );
@ini_set( 'post_max_size', '64M');
@ini_set( 'max_execution_time', '300' );

 wp-config.php

define('WP_MEMORY_LIMIT', '64M');

 .htaccess

php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300

 php.ini

Create [highlight color=”orange”]php.ini[/highlight] in your [highlight color=”salmon”]wp-admin[/highlight] folder and copy the code below:

memory_limit = 100M
upload_max_filesize = 192M
post_max_size = 100M
file_uploads = On

 

Artikel terkait:   Enable gzip compression

Isi Komentar

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *

+ 56 = sixty three

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top