feat: Improve mime type detection, limit image processing size
This commit is contained in:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user