1
0
Fork 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
1 changed files with 1 additions and 0 deletions

View File

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