I'm getting request too large Error 413 when submiting file in laravel

丶灬走出姿态 提交于 2021-02-05 08:10:42

问题


I'm using laravel and filepond to upload some files. It works fine with files smaller than 100MB, but if I try to upload bigger (400MB) files I get 413 error. I have already increased post_max_size and upload_max_filesize in php.ini and changed client_max_body_size in nginx, but it still does not work. I'm missing something?

Best regards


回答1:


Its php and nginx related.

Check which php.ini is used php --ini

Sometimes there are multiple ones that change the original value

Search in all php.ini files cat /path/php.ini | grep upload_max_filesize

Last thing is, make sure you restart nginx and php after the changes



来源:https://stackoverflow.com/questions/62152043/im-getting-request-too-large-error-413-when-submiting-file-in-laravel

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!