"Sorry, this file is too large" but no

For a picture I want to upload on last version of Discourse, max_image_size_kb and max_attachment_size_kb both at 4096, event if I set 20000 Kb, my picture (jpg) is 1.2Mo and I have this error:

image


Sorry, this file is too large (the maximum size allowed is 4096 KB).

「いいね!」 1

Unless you can reproduce it here, this is a configuration problem with your instance. 4MB is the default upload limit in Discourse.

「いいね!」 4

The most common cause of this issue is a reverse proxy that is not configured properly.

「いいね!」 6

I had exactly the same problem, but setting client_max_body_size in my reverse proxy fixed this.

But the error message displayed is misleading, because it tells the user the value set in max_image_size_kb and not the setting that is causing the problem. Maybe this could be changed to a better wording.

「いいね!」 2

私も同じことが起こります。エラーメッセージは、助けようとする代わりに、さらに混乱させます。エラーメッセージを改善し、実行可能にしてください。

「申し訳ありませんが、そのファイルは大きすぎます(最大サイズは50 MBです)。大きなファイルをクラウド共有サービスにアップロードしてから、リンクを貼り付けてください。」

..そして、私は10〜20 MBのファイルをアップロードしています。

「いいね!」 3

@meglio 、最近、私たちも同じ問題に遭遇しましたが、解決策は見つかりましたか?