• Resolved cipra

    (@cipra)


    Hi! So I created a form with the possibility to upload media files. But when uploading, there is the message “increase post_max_size and upload_max_filesize to 4.7683715820312M” – even though the images (I tried with a few) are much smaller than the default 5 MB. The picture was then not uploaded.

    What I already tried:
    – I set the “Upload File Size Limit” in the form to 10 or more MB. Only the number in the message changed.
    – In the WordPress settings (php.ini, functions.php) the upload_max_filesize / post_max_size / max_execution_time / memory_limit are already set to a high number; but that is not the problem anyway – upload of bigger files worked with another plugin.

    I need help please!
    Caroline

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support aacesc

    (@aacesc)

    Hello @cipra

    Thank you for writing to us. That number is not the static number set in our plugin itself but is pulled from the value that is set in the php.ini. If the website is hosted in the shared hosting then setting those values from functions.php might not be sufficient and might be needed to be changed directly in the server’s php.ini file.

    Please check the highlighted section of the screenshot on the note of “Upload File Size Limit” field and set the number less than the highlighted number.

    https://prnt.sc/s7bhoFKVNQ-w

    Can you please change the Upload File Size Limit to just 3 MB and let us know if that allows the file to be uploaded?

    Thanks.

    Thread Starter cipra

    (@cipra)

    Hi!
    In my php.ini I have the entry “upload_max_filesize = 256M”. But something strange: I have no number in the note mentioned as on your screenshot, there’s just blank space: “Please note that the number shouldn’t exceed . If you want to allow more than then please update the value in your server’s php.ini file.

    When I change the limit to 3MB or even 1MB there’s still the message “increase post_max_size and upload_max_filesize to 1M” in the browser when I try to upload a picture with 250kB

    Plugin Support aacesc

    (@aacesc)

    Hello @cipra

    Thank you for your reply. We are using ini_get('upload_max_filesize') function to get the value of upload_max_filesize and it seems ini_get is not returning anything. This happens when it is disabled in the php.ini file inside disable_functions parameter.

    Can you please check if that is disabled? If yes then after enabling it, it should work properly.

    The below tutorial might help you to debug this.

    https://inspector.dev/how-to-enable-disable-php-native-functions-php-ini-tutorial/

    Thanks.

    Thread Starter cipra

    (@cipra)

    Thank you – the disable_functions parameter in the php.ini file was empty, so that was not the problem. But I found the cause: in my user.ini-file there were also upload_max_filesize and post_max_size listed. With no values, so I added them (same as in the php.ini) and now it works!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Problem with filesize / upload’ is closed to new replies.