• Resolved intonalist

    (@intonalist)


    Why why why is the default file upload set to 2MB????? So antiquated, and so much trouble trying to trace where and how to fix it. What possible modern reason could there be for that old limit?

    And yes, I have edited php and wp-config and functions and what not and it still does not work. HOURS AND HOURS on this.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter intonalist

    (@intonalist)

    Hallelujah, found the answer in one of the many threads on this subject. Hint, it’s not “ask your hosting provider”.

    Search for this thread, read down a couple of comments. The php version mentioned needs to be updated.

    How to increase Maximum upload file size from 2MB

    And .. then, restart apache ??

    • This reply was modified 10 months, 2 weeks ago by intonalist.
    Moderator James Huff

    (@macmanx)

    The maximum upload size is controlled at the server level, not by WordPress. 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 = 250M ; and post_max_size = 250M ;
    2. If you cannot edit or override the system php.ini file, add php_value upload_max_filesize 250M and php_value post_max_size 250M to your .htaccess file.
    3. If neither of these works, 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 250MB)

    Thread Starter intonalist

    (@intonalist)

    Yes, for a self-managed LAMP stack with wordpress: /etc/php/(version)/apache2/php.ini

    two values to set upload_max_filesize and post_max_size

    then restart apache2

    All the other frequently suggested ‘fixes’ do not seem to work: htaccess, php.ini within the www home directory, etc etc.

    Moderator James Huff

    (@macmanx)

    Yeah, which fix works varies greatly on your server configuration.

    Glad that worked out for you!

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