stop uploading after failed uploadLimit validation on frontend

This commit is contained in:
Milos Holba
2021-02-06 11:15:09 +01:00
parent 9972f471c4
commit ed2d008f4b
2 changed files with 11 additions and 2 deletions

View File

@@ -177,7 +177,7 @@ const Helpers = {
if (files.length == 0) return
if (!this.$checkFileMimetype(files)) return
if (!this.$checkFileMimetype(files) || !this.$checkUploadLimit(files)) return
this.$handleUploading(files, undefined)
}