diff --git a/packages/web/src/js/FileUploader.ts b/packages/web/src/js/FileUploader.ts index 03350d7355..d7afcb39ed 100644 --- a/packages/web/src/js/FileUploader.ts +++ b/packages/web/src/js/FileUploader.ts @@ -273,7 +273,7 @@ class FileUploader extends BaseComponent { if (hasImagePreview && isFileImg) { AttachmentSvgIcon?.remove(); AttachmentPreviewImage?.querySelector('img')?.setAttribute('alt', file.name); - image2Base64Preview(file, 100, (compressedDataURL) => + image2Base64Preview(file, IMAGE_PREVIEW_BASE64_MAX_WIDTH, (compressedDataURL) => AttachmentPreviewImage?.querySelector('img')?.setAttribute('src', compressedDataURL), ); } else {