What do you mean it’s too big?

Sometimes you want to upload a file, an image maybe, a zip file, a video that’s not hosted on Youtube or Vimeo and you suddenly find you’ve hit a wall. It’s too big. Your default file size says something like 2MB and you know it’s going to be useless forever. Nevermind, it’s OK.

Create a new file in your editor of choice and name it php.ini.

Enter these 2 lines (altering the sizes to whatever you need) :

upload_max_filesize = 15M
post_max_size = 15M

I believe that in theory these 2 numbers could be different, say 50MB for files and only 2MB for posts, but in practice it seems to have to be the same. That’s in my experience on my servers. Try it out, your mileage may vary.

Now save the file via FTP to the wp-admin directory of your WordPress installation. On a shared host putting it inside the wp-admin directory will stop it from applying to everything on your account and may also stop it interfering with your host’s prefered method of doing things which is what gave you your 2MB limit in the first place.


Leave a Reply

Your email address will not be published. Required fields are marked *