From 731a9953f1278568fa3d3aa10b4248b4043b7f41 Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Tue, 7 Jan 2025 21:34:47 +0000 Subject: [PATCH] Reference the maxFileSize constant here --- upload/upload.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/upload/upload.go b/upload/upload.go index 65ad1b5..703aa21 100644 --- a/upload/upload.go +++ b/upload/upload.go @@ -60,7 +60,7 @@ func (h *Handler) Handle(rw http.ResponseWriter, req *http.Request, params httpr return } - // if file is bigger than 1GiB + // if file is bigger than maxFileSize if fileHeader.Size > maxFileSize { http.Error(rw, "File too big", http.StatusInsufficientStorage) return