From 5fd27bcb6523376f93727a4c53e7a143be782f22 Mon Sep 17 00:00:00 2001 From: Emma Alexia Date: Fri, 29 Aug 2025 16:05:02 -0400 Subject: [PATCH] Fix larger gallery image uploading (#4292) This reconciles a couple of differences between the frontend and backend regarding gallery image uploads. - Frontend: The frontend thought that the limit should be 500 MiB for gallery images. This is obviously not right. It has been updated to 5 MiB. - Backend: The backend has been rejecting anything between 2 MiB and 5 MiB, but this is inconsistent with prior usage, where the limit used to be 5 MiB. It has been updated to allow anything under 5 MiB. Fixes #4291 --- apps/frontend/src/pages/[type]/[id]/gallery.vue | 4 ++-- apps/labrinth/src/routes/v3/project_creation.rs | 4 ++-- apps/labrinth/src/routes/v3/projects.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/frontend/src/pages/[type]/[id]/gallery.vue b/apps/frontend/src/pages/[type]/[id]/gallery.vue index be97408e..7ca3cb7a 100644 --- a/apps/frontend/src/pages/[type]/[id]/gallery.vue +++ b/apps/frontend/src/pages/[type]/[id]/gallery.vue @@ -15,7 +15,7 @@ class="iconified-button raised-button" prompt="Replace" :accept="acceptFileTypes" - :max-size="524288000" + :max-size="5242880" should-always-reset aria-label="Replace image" @change=" @@ -197,7 +197,7 @@