From 4cc2205d6088b81ad13875e9abb429265fae3f07 Mon Sep 17 00:00:00 2001 From: Ayobami Date: Sun, 6 Jul 2025 13:22:56 +0100 Subject: [PATCH] Fix: issue 3, max image size is 1mb --- src/pages/Host/Spaces/Add/SpaceDetailsTwo.jsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pages/Host/Spaces/Add/SpaceDetailsTwo.jsx b/src/pages/Host/Spaces/Add/SpaceDetailsTwo.jsx index 5a622b1..20d918e 100644 --- a/src/pages/Host/Spaces/Add/SpaceDetailsTwo.jsx +++ b/src/pages/Host/Spaces/Add/SpaceDetailsTwo.jsx @@ -131,11 +131,11 @@ const SpaceDetailsTwo = () => { return; } - if (file?.size && file?.size > 5 * 1024 * 1024) { - // 5 MB limit + if (file?.size && file?.size > 1 * 1024 * 1024) { + // 1 MB limit showToast( globalDispatch, - "One or more of the image is too large. Max size is 5 MB.", + "One or more of the image is too large. Max size is 1 MB.", 4000, "ERROR" ); @@ -332,7 +332,7 @@ const SpaceDetailsTwo = () => { * Photographs of the space

- file type (jpeg/png/svg), max size (5MB), suggest resolution + file type (jpeg/png/svg), max size (1MB), suggest resolution (640*480)