• Resolved walsh259

    (@walsh259)


    Hi,
    I have a website where the file uploads will not work, I have checked the php settings and the limit is set to 512MB yet i am shown the error “The uploaded file exceeds the upload_max_filesize directive in php.ini.”

    I have tried multiple files and sizes to upload and the same error, Tried multiple php versions and still the same error.

    File permissions & ownerships have been checked, still the same issue.

    We are using Bluehost VPS server and the error has been since upgrading to VPS,
    Their support has looked into this and can’t see what is causing the issue

    We have even done a fresh install of WordPress with no plugins installed and the same issue.

    Any help you could offer would be great.

    Thanks

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

    (@macmanx)

    You’ll need to make sure that *both* upload_max_filesize and post_max_size are set to 512MB.

    For example, upload_max_filesize = 512M ; and post_max_size = 512M ;

    Thread Starter walsh259

    (@walsh259)

    Hi James,

    Both are set to 512M, when in WordPress media library, it even states that the maximum file upload size is 512M.

    Also, I should point out that there is no php.ini file in the website files. It is managed through the WHM in the php configurator.

    Moderator James Huff

    (@macmanx)

    WordPress is finding a php.ini file somewhere, as it states in the error.

    More than likely, it’s overriding the settings you established in WHM.

    I recommend checking with your hosting provider’s support, or if they don’t offer help for this, try at https://cpanel.com/support/

    Hi James,

    I faced same issue on recent Ubuntu 16.04 install. I updated upload-max-filesize as i used to do in this case but it did not help.

    Then I read your messsage and looked for post_max_size and updated it also and it fixed the issue for me!

    Thank you!

    You’ll need to make sure that *both* upload_max_filesize and post_max_size are set to 512MB.

    Moderator James Huff

    (@macmanx)

    You’re welcome!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Media Library File Upload Error’ is closed to new replies.