mirror of
https://github.com/1f349/site-hosting.git
synced 2025-01-21 06:36:33 +00:00
Reference the maxFileSize constant here
This commit is contained in:
parent
cb0cb9f39d
commit
731a9953f1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user