From cae874ef0577acbd2bdf4dc02f601caaaadebddf Mon Sep 17 00:00:00 2001 From: advplyr Date: Tue, 20 May 2025 17:44:13 -0500 Subject: [PATCH] Update max allowed json request size #4250 --- client/components/modals/podcast/EpisodeFeed.vue | 4 ++-- server/Server.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/components/modals/podcast/EpisodeFeed.vue b/client/components/modals/podcast/EpisodeFeed.vue index 08f2f38c..7ec14ccd 100644 --- a/client/components/modals/podcast/EpisodeFeed.vue +++ b/client/components/modals/podcast/EpisodeFeed.vue @@ -244,8 +244,8 @@ export default { const sizeInMb = payloadSize / 1024 / 1024 const sizeInMbPretty = sizeInMb.toFixed(2) + 'MB' console.log('Request size', sizeInMb) - if (sizeInMb > 4.99) { - return this.$toast.error(`Request is too large (${sizeInMbPretty}) should be < 5Mb`) + if (sizeInMb > 9.99) { + return this.$toast.error(`Request is too large (${sizeInMbPretty}) should be < 10Mb`) } this.processing = true diff --git a/server/Server.js b/server/Server.js index ef6ecb8a..17c959c0 100644 --- a/server/Server.js +++ b/server/Server.js @@ -310,7 +310,7 @@ class Server { }) ) router.use(express.urlencoded({ extended: true, limit: '5mb' })) - router.use(express.json({ limit: '5mb' })) + router.use(express.json({ limit: '10mb' })) router.use('/api', this.auth.ifAuthNeeded(this.authMiddleware.bind(this)), this.apiRouter.router) router.use('/hls', this.hlsRouter.router)