How do I increase my Wordpress upload size?

Linode Staff

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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct