How to increase the Maximum File Upload Size through the .htaccess File

In order to increase the WordPress max file upload size, you must edit your

.htaccess file via SFTP.

Step 1

Connect to the your Strattic SFTP server (see how to connect using Cyberduck)

Step 2

Once you are connected, head to the /public_html/ folder

Step 3

The .htaccess file is a hidden file by default, so you will need to show hidden files to locate it. From your Cyberduck menu go View > Show hidden files

Step 4

Right-click on the .htaccess file and select Edit

Step 5

Next, you need to add the following code snippet to your .htaccess file.

php_value upload_max_filesize 32M
php_value post_max_size 64M
php_value memory_limit 128M
php_value max_execution_time 300
php_value max_input_time 300

Step 6.

Once you are done making changes save the file. The downloaded file will then upload to back to the server and override the existing file. That's it!

Did this answer your question?