Reference the maxFileSize constant here

This commit is contained in:
Melon 2025-01-07 21:34:47 +00:00
parent cb0cb9f39d
commit 731a9953f1
Signed by: melon
GPG Key ID: 6C9D970C50D26A25

View File

@ -60,7 +60,7 @@ func (h *Handler) Handle(rw http.ResponseWriter, req *http.Request, params httpr
return return
} }
// if file is bigger than 1GiB // if file is bigger than maxFileSize
if fileHeader.Size > maxFileSize { if fileHeader.Size > maxFileSize {
http.Error(rw, "File too big", http.StatusInsufficientStorage) http.Error(rw, "File too big", http.StatusInsufficientStorage)
return return