Skip to content

Commit 2f1039c

Browse files
committed
update: maxFileSize if statement
1 parent b25fc93 commit 2f1039c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/kotlin/gogo/gogostage/domain/image/application/ImageValidator.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class ImageValidator {
1919
throw StageException("Image Extension Invalid", 400)
2020
}
2121

22-
if (image.size > maxFileSize) {
22+
if (image.size >= maxFileSize) {
2323
throw StageException("Image Size Exceeds 10MB", 400)
2424
}
2525
}

0 commit comments

Comments
 (0)