WebDAV: Skip download sync if storage is full or quota is exceeded #4266

Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
Michael Mayer
2025-03-11 23:45:41 +01:00
parent c3d22c157c
commit eb9371d089
7 changed files with 19 additions and 14 deletions

View File

@@ -56,7 +56,7 @@ func StartImport(router *gin.RouterGroup) {
}
// Abort if there is not enough free storage to import new files.
if conf.FilesQuotaReached() {
if conf.FilesQuotaExceeded() {
event.AuditErr([]string{ClientIP(c), "session %s", "import files", "insufficient storage"}, s.RefID)
Abort(c, http.StatusInsufficientStorage, i18n.ErrInsufficientStorage)
return