• I am trying to increase the media size to upload PDFs for a company. I did not create the site but cannot upload files larger than 2MB. The company host this site on its SQL server and I cannot find htaccess or phpini files. How do I increase the file size?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    The maximum upload size is controlled at the server-level, not by WordPress, and you generally will need to find either php.ini or .htaccess (location depends on the server configuration). Here are three ways you can increase the upload limit:

    1. If you can edit or override the system php.ini file, increase the maximum file and post sizes. For example, upload_max_filesize = 100M ; and post_max_size = 100M ;

    2. If you cannot edit or override the system php.ini file, add php_value upload_max_filesize 100M and php_value post_max_size = 100M to your .htaccess file.

    3. If neither of these work, it’s time to ask your hosting provider to increase the maximum file and post sizes on your account. Keep in mind that most decent hosting providers allow this, and If your hosting provider won’t accommodate you, perhaps it’s time to find a new hosting provider.

    (in the above examples, the limit is set to 100MB)

    Thread Starter technck

    (@technck)

    Thank you James, this site is a big part of the company’s day to day operations. Should I wait to try this on a day when no one is using it in case there is a problem? I cannot have the site go down.

    Moderator James Huff

    (@macmanx)

    Yes, it’s probably safer to try it during a low-traffic period. ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘media upload size’ is closed to new replies.