You are currently viewing Increase The Upload Size In WordPress

Increase The Upload Size In WordPress

Do you wish to increase the maximum upload size of files in WordPress? Sometimes, the largest size limits can prevent users from uploading files using a media uploader or installing themes and plugins. In this post, I’ll try to guide you on how to increase the maximum upload size on WordPress to solve the issue.

Upload Size Limits in WordPress

WordPress will automatically display the maximum size of the upload limit whenever you upload media or images. You just need to log into your WordPress dashboard, then navigate to the MediaAdd New. You will find the maximum capacity limit to upload on the WordPress website.

The maximum upload file size in wordpress

 

3 ways to upload maximum file size in WordPress

  • Create / Modify an existing PHP.INI file.
  • Theme Functions File.
  • Editing the Htaccess file.

1. Create / Modify an existing PHP.INI file

Edit the php ini file in wordpress

In this way, you’ll need to log in to your hosting account via cPanel, click – file manager, then create the Php.ini file within the WordPress Setup directories root.

A majority of WordPress users encounter this issue when using shared hosting. In which case, you won’t find the php.ini file within your directory. If you don’t see one, you can create the file php.ini and then upload it to the root directory. In that file, add this code:

 

upload_max_filesize = 64M

post_max_size = 64M

max_execution_time = 300

 

2. Theme Functions File

This method has been able to increase the size of files. This code can be added within the WordPress function.php file, you can improve the size of the upload:

@ini_set( ‘upload_max_size’ , ’64M’ );

@ini_set( ‘post_max_size’, ’64M’);

@ini_set( ‘max_execution_time’, ‘300’ );

 

3. Editing the Htaccess file.

Htaccess File for wordpress

Editing the Htaccess file is an effective method to swiftly resolve the issue. Many users have tried this .htaccess method where by altering the .htaccess file located in the root directory, you are able to increase the upload file size within WordPress. Change the .htaccess file located in your WordPress site’s root folder, and add the following code to it:

php_value upload_max_filesize 64M

php_value post_max_size 64M

php_value max_execution_time 300

php_value max_input_time 300

I hope That I have helped you find a way to increase the size of your uploads on your WordPress website.