[英]File upload limit in Nginx & (The server returned a "413 Content Too Large")
I made a file upload configuration within a website.我在网站中进行了文件上传配置。 The file can be successfully uploaded to the server.
文件可以成功上传到服务器。 But I get this error when the file size increases.
但是当文件大小增加时我得到这个错误。 In my Nginx configuration files,
client_max_body_size 100M;
在我的Nginx配置文件中,
client_max_body_size 100M;
for http and server blocks;对于 http 和服务器块; I added the line.
我添加了行。 But I couldn't solve the problem.
但我无法解决问题。 What do I have to do for this?
我必须为此做什么?
You also have to edit your php.ini
which is currently loaded.您还必须编辑当前加载的
php.ini
。 You can find this from <?php phpinfo();
你可以从
<?php phpinfo();
找到它。 then edit the following.然后编辑以下内容。
memory_limit = 64M
upload_max_filesize = 100M
post_max_size = 100M
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.