4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Nginx】エラー「client intended to send too large body:」の対処法

Posted at

Unityから1.2MB程のWebCam画像をサーバーに転送した際に以下のエラーログを吐いていたのでその対処法備忘録です。

client intended to send too large body: 1215447 bytes

Nginxのデフォルトファイルサイズを超えていた

Nginxの転送ファイル容量はデフォルト1MBまでとのことで、それを増やすことで解決します。

nginx.confclient_max_body_sizeを指定します。
今回は2MBまで送信できるようにしてこの問題を対処しました。

nginx.conf
http {
    client_max_body_size 2000000;
~~~~略~~~~

参考

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?