Rails ckeditor 413 Request Entity Too Large on 2MB file

sunsonavaj · 2012年05月09日 · 最后由 HungYuHei 回复于 2012年05月09日 · 3799 次阅读

我 Web 服务器是 nginx rails 服务器 unicron 用的是 Ckeditor 插件 上传大约 2.4M 的图片,出现 request entity too large

求解

在配置文件的 http 段中加上 client_max_body_size 100M;

需要 登录 后方可回复, 如果你还没有账号请 注册新账号