From 579760cd792385cdbc80467660c8b3a7b6170665 Mon Sep 17 00:00:00 2001 From: Ramesh Mane <101566080+rameshmane7218@users.noreply.github.com> Date: Wed, 20 Nov 2024 17:11:15 +0000 Subject: [PATCH] fix(nc-gui): remove hardcoded file size limit from image cropper file --- packages/nc-gui/components/general/ImageCropper.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nc-gui/components/general/ImageCropper.vue b/packages/nc-gui/components/general/ImageCropper.vue index 45023a2642..00f97fc65d 100644 --- a/packages/nc-gui/components/general/ImageCropper.vue +++ b/packages/nc-gui/components/general/ImageCropper.vue @@ -43,7 +43,7 @@ const previewImage = ref({ const fileSize = ref(0) const isValidFileSize = computed(() => { - return !!(fileSize.value && fileSize.value * 1.33 <= (uploadConfig?.maxFileSize || 3 * 1024 * 1024)) + return uploadConfig?.maxFileSize ? fileSize.value && fileSize.value <= uploadConfig?.maxFileSize : true }) const handleCropImage = () => {