How large is the file you're uploading? Is it larger than 9.76MB?
Do you have a reverse proxy for your front end?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hey guys
I'm struggling for hours to debug the error 413 Payload Too Large in my server but couldn't figure out a solution
That occured during a file upload
My server is Apache/2.4.18 (Ubuntu)
I ran
php -i | grep 'php.ini'
-> it showed /etc/php/7.2/cli/php.ini
then I set both post_max_size and upload_max_filesize to 10000
I reloaded but no way...
I also tried
<Directory "/var/www/html/myproject/public">
LimitRequestBody 102400
</Directory>
also no way...
is there any other thing I can try? =(
Please or to participate in this conversation.