feat: Improve mime type detection, limit image processing size

This commit is contained in:
Maksim Eltyshev
2025-12-19 17:24:22 +01:00
parent 9bf7e9de3d
commit fb5d5233bf
7 changed files with 150 additions and 20 deletions
+2
View File
@@ -5,9 +5,11 @@ const AccessTokenSteps = {
const POSITION_GAP = 65536;
const MAX_SIZE_TO_GET_ENCODING = 8 * 1024 * 1024;
const MAX_SIZE_TO_PROCESS_AS_IMAGE = 64 * 1024 * 1024;
module.exports = {
AccessTokenSteps,
POSITION_GAP,
MAX_SIZE_TO_GET_ENCODING,
MAX_SIZE_TO_PROCESS_AS_IMAGE,
};