From 4e3e1a4a6afdce147c8877f1191c00e43cbecbca Mon Sep 17 00:00:00 2001 From: ekzyis Date: Thu, 26 Oct 2023 01:19:03 +0200 Subject: [PATCH] Increase max upload size to 10MB to allow HQ camera pictures --- lib/constants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/constants.js b/lib/constants.js index ee33ccc4..de321ea7 100644 --- a/lib/constants.js +++ b/lib/constants.js @@ -6,7 +6,7 @@ export const SUBS_NO_JOBS = SUBS.filter(s => s !== 'jobs') export const NOFOLLOW_LIMIT = 1000 export const BOOST_MULT = 5000 export const BOOST_MIN = BOOST_MULT * 5 -export const UPLOAD_SIZE_MAX = 2 * 1024 * 1024 +export const UPLOAD_SIZE_MAX = 10 * 1024 * 1024 export const IMAGE_PIXELS_MAX = 35000000 export const AWS_S3_URL_REGEXP = new RegExp(`https://${process.env.NEXT_PUBLIC_AWS_UPLOAD_BUCKET}.s3.amazonaws.com/([0-9]+)`, 'g') export const UPLOAD_TYPES_ALLOW = [