Skip to content

Commit

Permalink
increase image size limit to 8 MB, #192
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanielrindlaub committed Jan 13, 2025
1 parent 9fd4142 commit b96c4ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/api/db/models/Image.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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...');
Expand Down

0 comments on commit b96c4ba

Please sign in to comment.