diff --git a/internal/http/handlers.go b/internal/http/handlers.go index 194481b..7cd0065 100644 --- a/internal/http/handlers.go +++ b/internal/http/handlers.go @@ -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()