From b96c4ba5279506d59facc14525864e171d30925c Mon Sep 17 00:00:00 2001 From: Nathaniel Rindlaub Date: Mon, 13 Jan 2025 12:02:49 -0800 Subject: [PATCH] increase image size limit to 8 MB, #192 --- src/api/db/models/Image.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/api/db/models/Image.ts b/src/api/db/models/Image.ts index a1f2d510..9f4cc7ec 100644 --- a/src/api/db/models/Image.ts +++ b/src/api/db/models/Image.ts @@ -338,10 +338,10 @@ export class ImageModel { errors.push(new Error('Unknown DateTimeOriginal')); } - // // test image size - // if (md.imageBytes! >= 4 * 1000000) { - // errors.push(new Error('Image Size Exceed 4mb')); - // } + // test image size + if (md.imageBytes! >= 8 * 1000000) { + errors.push(new Error('Image Size Exceed 8 MB')); + } if (!errors.length) { console.log('validation passed, creating image record...');