Browse Source

fix(nc-gui): remove hardcoded file size limit from image cropper file

pull/9722/head
Ramesh Mane 2 days ago
parent
commit
579760cd79
  1. 2
      packages/nc-gui/components/general/ImageCropper.vue

2
packages/nc-gui/components/general/ImageCropper.vue

@ -43,7 +43,7 @@ const previewImage = ref({
const fileSize = ref<number>(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 = () => {

Loading…
Cancel
Save