• Hi

    A while ago we change the file upload size to 128M because some pictures could not get uploaded -> We only needed maybe 8MB but decided to just set a high number. This worked after doing the necessary changes. We’re now in a situation that there are pictures over 10MB that need to get uploaded, but we get the following error in our log:

    AH01071: Got error ‘PHP message: PHP Warning: POST Content-Length of 30790477 bytes exceeds the limit of 10485760 bytes in Unknown on line 0’, referer: https://192.168.0.222/wp-admin/media-new.php

    Chrome gives me following error: POST https://192.168.0.222/wp-admin/async-upload.php 403 load-scripts.php?c=1…-handlers&ver=5.5:9

    I’ve checked everywhere: the htaccess file is good, so is the wp-config, apache ini files are fine. I even checked the functions.php and that one is also fine. Everywhere I check has the 128M correct, but it’s not taking. We are using an nginx proxy manager (differen server) but i already changed the client_max_body_size and this has no effect on the error.

    Could anyone help me with this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • What is the limit of post_max_size in php.ini.
    I think you need to increase that

    Thread Starter bvlb

    (@bvlb)

    It was set to 128M, which should be more than enough to upload the files. We even set is to 0 to disable the limit but even then it doesn’t work

    @bvlb

    From the error message you posted, it’s clear that the request is reaching PHP, and the value of post_max_size is set to 10 MB only.

    In order for PHP to handle the upload of 100 MB, you need to set these two parameters to 100M in the php.ini file for your site.

    1. upload_max_filesize
    2. post_max_size

    You can verify that by navigating to Media->Add New where you’ll be presented with something like

    which will show you Maximum upload file size: 100 MB. when you have done it correctly, as it shows the minimum of these two values.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Files over a certain size not uploading’ is closed to new replies.