Skip to content

Commit

Permalink
Reference the maxFileSize constant here
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmelon54 committed Jan 7, 2025
1 parent cb0cb9f commit 731a995
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upload/upload.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 731a995

Please sign in to comment.