fix tests isues

This commit is contained in:
root
2026-06-11 01:43:25 -04:00
parent 64df4439d3
commit b22983650d
16 changed files with 10 additions and 1485 deletions
+1 -1
View File
@@ -49,7 +49,7 @@ export function detectImageType(buffer: Buffer): DetectedFile | null {
function assertSafeImageContent(file: Express.Multer.File) {
const detected = detectImageType(file.buffer)
if (!detected || !ALLOWED_IMAGE_TYPES.has(detected.mime)) {
throw new ValidationError(`Unsupported or spoofed image file: ${file.name}`)
throw new ValidationError(`Unsupported or spoofed image file: ${file.originalname}`)
}
if (file.mimetype !== detected.mime) {