Modifying the .htaccess File
If you don’t have access to the php.ini file, you can use the .htaccess
file to increase the upload size.
Step 1: Access Your .htaccess File
- Log in to your web hosting account.
- Navigate to your File Manager or connect via an FTP client.
- Locate the .htaccess file in your root directory.
Step 2: Edit the .htaccess File
- Open the .htaccess file for editing.
- Add the following lines:
php_value upload_max_filesize 64M
php_value post_max_size 64M
php_value max_execution_time 300
php_value max_input_time 300
- Save the changes and close the file.
How to Increase Maximum File Upload Size in WordPress?
Increasing the maximum file upload size in WordPress is a common need for many site owners. Whether you’re uploading large images, videos, themes, or plugins, running into upload limits can be frustrating. This guide will show you various methods to increase the maximum file upload size in WordPress, step by step.
These are the following methods:
Table of Content
- Updating the php.ini File
- Modifying the .htaccess File
- Editing the wp-config.php File