How do I increase my Wordpress upload size?
When I try uploading a file to Wordpress, it says my file is too big. How do I fix this?
1 Reply
This is a setting within Wordpress that is set to a default that typically ranges from 2MB to 5MB. There are a couple of ways to change this. You can use the functions.php
file and change upload_max_size
to a larger value. You can also change this in php.ini
by adding the following lines of code or changing the values already there:
upload_max_filesize = 64M
post_max_size = 64M
max_execution_time = 300
Another location to change is the .htaccess
file. You would use the same code block above in .htaccess
. I do want to note that .htaccess
will override other configurations, so you need to ensure consistency in all files. If you'd prefer to use your Wordpress admin site, you can go to Settings --> Upload Settings --> Max Upload File Size.