How to Increase WordPress’ File Upload Size Correctly

WordPress’ Media Uploader makes it very easy for users to upload images, videos, documents and more to their website. It’s a great tool for users who want to bypass often cumbersome and confusing FTP clients and have access to their media instantly.

Often, users want to upload files through the media tool that is over the WordPress size limit. Let’s find out the some of the methods being used to increased the default WordPress upload limit and how to implement them.

Increase WP Upload Size: The Solution that Works

So you want to increase the upload size of WordPress now. First, verify that you do not have a free account through WordPress.com and that you have access to your site’s files whether it be via your host’s file manager, good ol’ FTP, etc. Got that? Great, I can verify that this solution worked beautifully for me and was a snap to implement. How to do it:

Increase Upload Size Using a PHP.INI file

While the “php.ini” file name may seem scary, it’s simply a config file that we are using to modify the default server settings. I recommend you read more about the PHP.ini file by doing a quick Google search, it’s good knowledge. Ok so now let’s create this php.ini file and add some config commands to increase the default WordPress file upload size.

Create the php.ini File using Notepad (PC) or TextEdit (Mac)

Creating the file is easy, just open up your favorite text editor and save the file with the PHP name and the “.ini” extension.

Add the Following to the php.ini File

You may increase the file size limits by modifying the upload size.

memory_limit = 100M
upload_max_filesize = 192M
post_max_size = 100M
file_uploads = On

Upload the File to your wp-admin Directory

Ensure that you upload the file directly to the wp-admin folder of your WordPress installation and that’s it! Verify your site’s upload limits are increased by testing it through the WP Media uploader.

Screencast: How to Increase the WordPress Upload Size Limit

For those visual learners here’s a quick screencast I put together to quickly show you how easy this process actually is; please enjoy.

Increasing WordPress’ Upload Size: The Solutions You May Have Tried

There’s a lot of forum threads and blog posts on the Internet that you may have stumbled upon that seem like viable solutions. While some of them may work for certain situations, they may be more difficult/risky to implement or may not work at all. Here are some of the most common methods for increasing the max upload size of WordPress.

Modifying the .htaccess

The .htaccess file is a critical file on your server for directing visitors. One error in this file and you’re site’s down. That’s why I’d hesitate using this solution. I could not get this work in my testing environment, but I see it mentioned so often on the threads that someone must have gotten it to work.

Modifying the WordPress wp-config File

Increasing the WordPress memory limit in the wp-config files seems like it would be a viable solutions, but I could not get this to work to increase the file upload size. I have utilized define(‘WP_MEMORY_LIMIT’, ’64M’); to increase the memory limit for WordPress for other situation successfully but unfortunately not for this one.

Still not Working?

Depending on your host you may need to perform some extra steps necessary to increase you upload size. Here’s a few:

Using GoDaddy Hosting?

For users on GoDaddy, you will need to name your file “php5.ini” in order for their servers to recognize your settings.

MediaTemple Hosted Website

Check out the “How can I edit php.ini file?” to edit you php.ini files. Once you know how to edit the file, use the code in this article to increase the upload size to your desired setting.

Related posts:

  1. Fatal error: Allowed memory size of 33554432 bytes exhausted
  2. How to Get the WordPress Parent Page Permalink
  3. How to Use WordPress Query_posts and Exclude a Page
  4. Put a CSS Sticky Footer in Your WordPress Theme
  5. Easiest Way to Register a WordPress Sidebar/Widget Zone
TwitterDiggDeliciousStumbleuponTechnoratiFacebook
  • Pingback: TUTORIAL: How to install your new original ThemeFuse WordPress theme Cms News Cms News

  • http://www.kpot.be Wouter

    thanks!

  • http://blog.mindset4mlm.net Otoabasi Umonting

    Great tips here. I’ve been able to get it up and running. Thanks for sharing.

  • http://manilovefilms.com Dylan

    Awesome – thanks for this.  Easy peasy.

  • Kevn86

    ANYONE STILL HAVING ISSUES WITH THIS, PLEASE READ BELOW!!!

    I’m GoDaddy – PHP 5.2 – I tried everything that has been suggested by everyone else and couldn’t get it to work and I didn’t know why…  Then I figured it out…  (note: I finally got it to work this way with php5.ini in my root directory like everyone else with GoDaddy)

    Here was the problem…

    Be sure you are trying to upload media from the “Media -> Add New” tabs on the left-hand side of the wordpress menu.  If you are trying to upload via the “Insert” function on the individual pages, it will still limit at 8mb (for some odd reason).  So you must upload through “Media -> Add New”, and THEN you can insert your media into the individual pages from your library once they are uploaded!

    Hope this helps those who are still having trouble!  It’s been working all along, you just haven’t been trying to upload in the right place!!!

  • Henk Moller

    Any luck with increasing the size limit using XAMPP?

  • Henk Moller

    Can you do the same with using a local server as XAMPP?

  • Roberthaigh

    I followed instructions as per video and was able to upload the 6mb wp plugin but now get error message on home page.

    Warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, ‘pbc_wpmsg_make_post_parent_public_qv’ was given in /home/qr4real/public_html/m/wp-includes/plugin.php on line 405

  • http://anitasnotebook.com/ Anita

    Thanks for your help with this, saved me a lot of frustration :) .

  • Duke

    Nice suggestion.  It was by far the simplest explanation!  Best part…it worked!

  • Dan

    Thanks for your help. The key to me was the wp-admin folder.Thanks.

  • guest

    It didn’t change the setting for me… any ideas?

  • guest

    I should say it didn’t change the upload limit in WP.  I use Dreamhost which shows I have unlimited uploads.  I guess I do have a free WP account… I didn’t realize there was another kind.  Can you fill me in?

  • David

    Thank you so much for this! I’ve been trying to figure this out using a godaddy server and it worked : )

  • Worship

    This did nothing to change anything for me. Did exactly what you said, but still my file exceed max file upload size.

  • Pingback: » How To Build A Media Site On WordPress (Part 1) DESIGNLANDER

  • Alex

    Thanks, have been trying to do this for my photography site for the last couple of weeks and couldn’t find a satisfactory solution – this worked first time, uploaded direct to my ftp and worked first time. Thanks!

  • Andrie Purwanto

    thank you friends, this solution has helped solve the problem of the limitations that exist in hosting me, I was surprised after seeing the max upload size 100M, I’m not setting it, because I am afraid in my suspense by hosting parties. Thanks, the information is very helpful

  • http://www.wordimpressed.com Devin Walker

    No problem!

  • Pingback: Increase Max Upload File Size in WordPress | bavotasan.com

  • Macker0110

    This Works for me!!!! Thank you so much for a very helpful information. one like for this post!!!

  • mcctt

    well it still doesn’t work, but, this info is umbeliveble awsome, and very very clear. i usually don’t take the time to comment, but this time i was impressed.
    thanks for your time, knowledge, and sharing ;)

  • MU_Zodiacus

    works like a charm! thanks a bunch!!!

  • http://twitter.com/HunniGurl Hunni DontPlay

    success!!! THANK YOU!

  • Guest

    awesome! whole process worked flawlessly in under 2 minutes. 

  • http://olivetreesolutions.com/ Smcrjc

    Thank you so much – worked like a charm!

  • Evernano

    Yes, Thank you so much… I tried the others and they did not work for me and your worked Perfect… Thank You!!! Thank You!!! I just watch the video and applied… Great Post dude, tired of stressing out over this…