Skip to content

Commit bea8cb5

Browse files
committed
feat(rich-text-web): updated the file size limit considering the binary bytes
1 parent 80bd5e2 commit bea8cb5

File tree

1 file changed

+1
-1
lines changed
  • packages/pluggableWidgets/rich-text-web/src/components

1 file changed

+1
-1
lines changed

packages/pluggableWidgets/rich-text-web/src/components/Editor.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { getCKEditorConfig } from "../utils/ckeditorConfigs";
66
import { MainEditor } from "./MainEditor";
77
import DOMPurify from "dompurify";
88

9-
const FILE_SIZE_LIMIT = 1000000;
9+
const FILE_SIZE_LIMIT = 1048576; // Binary bytes for 1MB
1010

1111
interface EditorProps {
1212
element: HTMLElement;

0 commit comments

Comments
 (0)