How to increase the upload_max_filesize?
It may happen that while importing products, for example, files are not uploaded because the file is too large. Fortunately, we can increase the upload_max_filesize in WordPress.
Retrieve current upload_max_filesize
To increase the upload_max_filesize, we first need to get the current height from WordPress. To do this, in the backend of your WordPress website, go to Media > New File. For example, under the Select File button it says 'Maximum file size of upload: 19 MB'.
We now know that we need to set the maximum file size higher than 19 MB.
This is how you increase the upload_max_filesize
You can increase the upload_max_filesize through your .htaccess file. You can find this file via your FTP server in the main WordPress folder. Did you find this file? Then add the code below.
php_value upload_max_filesize 64M
Another option is to add the code below to the php.ini file. This can also be found on your FTP server in the root folder of WordPress. If the file does not yet exist - which is usually the case - you can create it yourself and add it to the root folder of your WordPress website.
upload_max_filesize = 64M
Of course, we can again use the wp-config.php for this adjustment. You will also find this in the root folder of your WordPress website on your FTP server. Add the code below to the wp-config.php to increase the maximum file size.
@ini_set( ‘upload_max_size’ , ‘100M’ );
You guessed it, this file is also found in the root folder of your WordPress website on the server. Add the code below to increase the upload_max_filesize.
@ini_set( 'upload_max_size', '64M');
Still experiencing problems or having questions? Please don't hesitate to contact us via woosa.com/support or by phone via +31 (0)320 - 33 77 77.