Show and enforce max upload size in the web UI with clear error messages
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user