How to Check Your Maximum File Upload Size Limit in WordPress?

WordPress will automatically show the maximum file upload size limit when you are uploading images or media. To check it you can simply go to Media » Add New media and you will see the maximum file upload size limit for your WordPress site.

This can be a server-side setting that hosts use to scale back the variety of assets wanted to serve your web site. It’s a technique to hold you from importing big records of data and pictures.

Whereas this may increasingly profit your host, it additionally helps your web site efficiency as effectively. Uploads within the type of big photographs, as an example, carry out poorly in your web site as a result of they take longer to obtain and serve. So identical to with the reminiscence restrict, earlier than you throw extra assets on the downside and improve the add restrict, see if there’s one thing you are able to do to scale back the file dimension first.

How to Increase the Maximum File Upload Size in WordPress

Edit your PHP.ini file

In the event that modifying your wp-config.php file doesn’t address the problem, you’ll have to address the issue within your server settings instead of within WordPress.

If you’re using shared hosting, you will not be able to access your PHP.ini file, so see the next option instead. If you do have access to PHP.ini, you’ll most likely find it in the root folder, but the location of the file will vary by host.

To increase the PHP memory limit and upload limit, change these lines in PHP.ini

memory_limit = 256M
upload_max_filesize = 32M
post_max_size = 64M

Edit your .htaccess file

If you don’t have access to PHP.ini, then your last resort is to modify your .htaccess file. Your .htaccess file starts with a dot because it is a hidden file. If you don’t see it in your root folder, check to make sure that your SFTP file manager isn’t keeping those files hidden from view.

To increase the PHP memory, you’ll add the following to your .htaccess file:

php_value memory_limit 256M
php_value upload_max_filesize 32M
php_value post_max_size 64M

If the PHP value memory limit has already been set, then increase it.

Pin It on Pinterest

Share This