mirror of
https://github.com/photoprism/photoprism.git
synced 2025-12-12 00:34:13 +01:00
UX: Improve quota calculation and checks in config and api #4266
Signed-off-by: Michael Mayer <michael@photoprism.app>
This commit is contained in:
@@ -56,7 +56,7 @@ func StartImport(router *gin.RouterGroup) {
|
||||
}
|
||||
|
||||
// Abort if there is not enough free storage to import new files.
|
||||
if conf.FilesQuotaExceeded() {
|
||||
if conf.FilesQuotaReached() {
|
||||
event.AuditErr([]string{ClientIP(c), "session %s", "import files", "insufficient storage"}, s.RefID)
|
||||
Abort(c, http.StatusInsufficientStorage, i18n.ErrInsufficientStorage)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user