1
0

Added missing return in free space check.

This commit is contained in:
Alexander Andreev 2023-05-24 23:57:02 +04:00
parent f8351b935d
commit b16ec84e86
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -87,6 +87,7 @@ func (h *UploadHandlers) Upload(w http.ResponseWriter, r *http.Request) {
if leftSpace < fHandler.Size { if leftSpace < fHandler.Size {
log.Println("not enough space left in storage, only", leftSpace>>20, "MiB left") log.Println("not enough space left in storage, only", leftSpace>>20, "MiB left")
web.ErrorNoSpace(utils.MainSite(r.Host), w) web.ErrorNoSpace(utils.MainSite(r.Host), w)
return
} }
s256 := sha256.New() s256 := sha256.New()