diff --git a/filed/config/filed.toml.example b/filed/config/filed.toml.example
index b7658fc..71a7682 100644
--- a/filed/config/filed.toml.example
+++ b/filed/config/filed.toml.example
@@ -17,6 +17,10 @@ allow_custom_names=true
# Allow password protection
allow_pass_protection=true
+# Reson why the uploads are disabled
+# This is shown only if allow_uploads = false
+# upload_disable_reason="File uploads were disabled because of an ongoing attack."
+
# How much files can one
# user have uploaded to the server.
# Note that it does not include expired files
diff --git a/filed/src/config/types.rs b/filed/src/config/types.rs
index 6f60a1a..9f4965a 100644
--- a/filed/src/config/types.rs
+++ b/filed/src/config/types.rs
@@ -17,6 +17,11 @@ pub struct FilesPolicy {
#[serde(default)]
pub allow_pass_protection: bool,
+ /// Reson why the uploads are disabled
+ /// This is shown only if allow_uploads = false
+ #[serde(default)]
+ pub upload_disable_reason: Option
- Uploads are temporarily disabled by the administrator. + Uploads are temporarily disabled by the administrator + {%- if let Some(disable_reason) = conf.files.upload_disable_reason -%} + {{- " " -}} because of the following reason: + + {{- disable_reason -}} + + {%- else -%} + . + {%- endif -%} + + Check again in a few minutes. +