The default upload limit for attachments is 10 MB. This is a global setting and it applies even to admins. I was wondering why an admin has any upload limit at all? Let’s say I wanted to upload a file on my site like an application or a program. I want users to be able to download that program. Since I am an admin, I know what I’m uploading and that it’s safe. Why should I have the same limit as a regular user?
You are conflating two different settings here
- max image size (4mb by default)
- max attachment size (10mb by default)
Ok oops. I meant the max attachment size. Hence, I mean 10 MB, not 4 MB. I want the admin to be able to attach any file or at least set the admin attachment limit separately in the admin panel. Say 200 MB for a limit for attachment for admins.
これは良い機能になる可能性があります。スタッフはあらゆるサイズのファイルをアップロードできる必要がありますが、一般ユーザーはそうではありません。すでにスタッフ向けの許可された拡張機能というオプションがありますが、スタッフ自身がアップロードファイルのサイズを制御したり、無制限にしたりする機能を追加してはどうでしょうか?
また、uploads.json?client_id=000000000000000でも、指定されたユーザーに対して常に同じになる追加のパラメータを設定することは可能でしょうか(セッションに関係なく)。そうすれば、おそらくユーザーごとにアップロードサイズを区別することが可能になり(スタッフ対一般/認証されていないユーザー)、ウェブサーバー側で場所(クエリも考慮する)に基づいてclient_max_body_size(またはそれに類するもの)を定義できるようになります。これにより、Discourseのアップロードクエリは**uploads.json?client_id=000000000000000\u0026user_id=constant_hashed_user_id_string**のようになります。
要するに、私たちのソフトウェアのベータ版を(テストのために)特定の個人と共有するなど、より大きなファイルをアップロードできる機能が必要ですが、ユーザーが2Mを超えることはほとんどありません。
素晴らしいソフトウェアと、世界をより良くしてくれてありがとう! <3