From 313ad4be6bde0a5292d528655d2d9f547e5211d8 Mon Sep 17 00:00:00 2001 From: Cleo Date: Wed, 4 Jan 2023 20:32:36 +0000 Subject: [PATCH] Fix: Increase rediculously small file size limit for follower imports Signed-off-by: Cleo --- packages/backend/src/server/api/endpoints/i/import-following.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/backend/src/server/api/endpoints/i/import-following.ts b/packages/backend/src/server/api/endpoints/i/import-following.ts index 23414547f..5f0cf9156 100644 --- a/packages/backend/src/server/api/endpoints/i/import-following.ts +++ b/packages/backend/src/server/api/endpoints/i/import-following.ts @@ -53,7 +53,7 @@ export default define(meta, paramDef, async (ps, user) => { if (file == null) throw new ApiError(meta.errors.noSuchFile); //if (!file.type.endsWith('/csv')) throw new ApiError(meta.errors.unexpectedFileType); - if (file.size > 50000) throw new ApiError(meta.errors.tooBigFile); + if (file.size > 2_000_000) throw new ApiError(meta.errors.tooBigFile); if (file.size === 0) throw new ApiError(meta.errors.emptyFile); createImportFollowingJob(user, file.id);