"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.validateUploadedFile = validateUploadedFile; const fileMagic_1 = require("./fileMagic"); const virusScanService_1 = require("../services/virusScanService"); /** Validates upload magic bytes and optional ClamAV scan. */ async function validateUploadedFile(filePath, allowedMimes) { (0, fileMagic_1.assertAllowedFileMagic)(filePath, allowedMimes); await (0, virusScanService_1.scanUploadedFile)(filePath); } //# sourceMappingURL=uploadValidation.js.map