How to Upload Files to WordPress Larger Than 2Mb

Written by jessica broadmoor
  • Share
  • Tweet
  • Share
  • Pin
  • Email
How to Upload Files to WordPress Larger Than 2Mb
(Jupiterimages/Pixland/Getty Images)

WordPress makes uploading files easy because you can upload right into the interface without using any additional software. However, if you need to upload large images or multimedia files, you may find that you are unable to, because of the 2 MB limit for WordPress uploads. Fortunately, you can increase the limit by altering a few settings in your Web hosting account.

Skill level:


  1. 1

    Access PHP Config. Log in to your cPanel account and scroll down to “Software and Services.” Next, click “PHP Configuration.”

  2. 2

    Install the php.ini file. Once you are on this screen, click the button that says “Install PHP.INI Master File.”

  3. 3

    Access the php.ini file. Go back to the cPanel main screen. Click “File Manager” and then “Webroot.” Find the file that says “php.ini” and select “Edit.”

  4. 4

    Change the maximum file size. Once the configuration file opens, find the line that says “upload_max_filesize=” and change the file size to 300M. Also change the line that says “post_max_size=” to 300M.

  5. 5

    Increase the time allowed. Find the lines that say “max_execution_time =30” and “max_input_time =60” and change them both to 120. This allows for the server to allow 120 seconds to execute, or load, scripts and parse data. This may be necessary if you are uploading large files.

  6. 6

    Save the changes. Click the button that says “Save Changes.”

  7. 7

    Test the settings. Log in to WordPress and try to upload a file that is greater than 2 MB but less than 100 MB. If you still receive an error message, contact your Web host.

Don't Miss

  • All types
  • Articles
  • Slideshows
  • Videos
  • Most relevant
  • Most popular
  • Most recent

No articles available

No slideshows available

No videos available

By using the site, you consent to the use of cookies. For more information, please see our Cookie policy.