2016年2月16日 星期二

HTTP Error 413 Request Entity Too Large

檔案上傳碰到了另一個雷

Q: HTTP Error 413
Request Entity Too Large

A:
除了 php.ini 內的
post_max_size = 8M
upload_max_filesize = 8M

外 nginx 內還有個有關的參數

在 "http{}" 內, 新增

client_max_body_size 8M;