Show and enforce max upload size in the web UI with clear error messages

This commit is contained in:
2026-08-29 00:48:25 +02:00
parent 2f91a056d5
commit 00920d42ef
2 changed files with 44 additions and 1 deletions
+5 -1
View File
@@ -430,7 +430,11 @@ func logRequest(r *http.Request, status int, duration time.Duration) {
func serveFrontpage(w http.ResponseWriter, r *http.Request) {
proto := getProtocol(r)
host := getHost(r)
pageData := map[string]string{"Proto": proto, "Host": host}
pageData := map[string]any{
"Proto": proto,
"Host": host,
"MaxUploadSize": maxUploadSize,
}
w.Header().Set("Content-Type", "text/html; charset=utf-8")
indexHTML.Execute(w, pageData)