Added missing return in free space check.
This commit is contained in:
parent
f8351b935d
commit
b16ec84e86
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user