Sometimes the WordPress media library’s upload limit of 2 MB is not enough. Especially if you want to upload .pdf files or larger .zip files, you will quickly exceed this limit. There are several options how to increase the upload limit. We would like to introduce a few here.
Increase upload limit in .htaccess
With two lines in the
.htaccess you set your upload limit to 200 MB. You should note that the
.htaccess located in the root directory of the WordPress installation.
php_value upload_max_filesize 200M php_value post_max_size 200M
Increase upload limit in wp-config.php
wp-config.php is located in the root directory of the WordPress installation. In this you can set the desired upload limit using the constant
WP_MEMORY_LIMIT also increase.
Increase upload limit in php.ini
You can also set the limit in the
php.ini raise. If your file is in the root directory of your WordPress installation, changes will only take effect there if in the subordinate
wp-admin– Directory no
php.ini is available. You should note that you write each command on one line.
upload_max_filesize = 200M post_max_size = 200M
If the increase in the upload limit has not yet taken effect, you can use the following command in the
file_uploads = On
Source: WordPress Bible
If you need help with this, please contact us. Preferably by email to email@example.com. We are happy to support you here.