Steps on WordPress tips to Increase Maximum Upload size
Step 1: Go To the Root Directory of your WordPress.
- Go to C:xampphtdocsdemotheme (demotheme is the root directory where WordPress is installed locally)
- open your File Manager and open WWW or public_html folder.
Step 2: Modify .htaccess File
What is the .htacces File?
Let’s know little bit basics about the .htaccess file before knowing about the Increasing Maximum Upload size in WordPress. The .htaccess file is simply the configuration file read by the server.
This file is helpful in modifying the server configuration settings and can be used for authorization, cache control, website optimization, and URL rewriting in your website. In WordPress, the .htaccess file is used most commonly for rewriting URLs, making them cleaner, and more readable by humans and search engines, and it is located in the root directory of your WordPress site.
You may not be able to find this file using the FTP Program. This is because all files and directory names starting with a period are hidden by default. If you want to view these hidden files, you need to enable show hidden files option in your FTP client.
Also Read Benefits and Secrets of jQuery Loading from Google
# Begin WordPress
RewriteEngine On
RewriteBase /demotheme/
RewriteRule ^index.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /theme-demo/index.php [L]
php_value upload_max_filesize 128M
php_value post_max_size 128M
php_value memory_limit 256M
php_value max_execution_time 300
php_value max_input_time 300
</IfModule># END WordPressIn the above code, you have to add accordingly. Go through line by line and be aware the don’t mess with the codes that your site might not work correctly if the syntax and codes are mistakenly written.
Now see the below the line of code mainly. You just can change some values on this only. Others keep it as usual. If your code has already this line then no need to add more codes or lines. Keep in mind that some plugins in WordPress are automatically added and modified.
“php_value upload_max_filesize 128M”
Step 3: Save Changes.
Now go to the uploading place and try to upload the bigger size of the file you have maintained. You will be able to upload the maximum file size you have mentioned. Hope this guide post helped you to Solve Error your file exceeds the maximum upload size. we will be posting useful WordPress tips in future posts.