From fabfd61c4b459bce15c7e35a78793d8ab947f865 Mon Sep 17 00:00:00 2001 From: redzzzi Date: Tue, 4 Jun 2024 15:41:03 +0900 Subject: [PATCH] =?UTF-8?q?style=20:=20=EC=86=8D=EC=84=B1=EC=9D=98=20?= =?UTF-8?q?=EA=B8=B8=EC=9D=B4=EC=97=90=20=EB=94=B0=EB=9D=BC=20maxSize?= =?UTF-8?q?=EC=99=80=20accept=EC=9D=98=20=EC=88=9C=EC=84=9C=20=EC=A1=B0?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #479 --- src/components/Uploader/FileUploader.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Uploader/FileUploader.tsx b/src/components/Uploader/FileUploader.tsx index 73a722a7..de81cfd5 100644 --- a/src/components/Uploader/FileUploader.tsx +++ b/src/components/Uploader/FileUploader.tsx @@ -49,6 +49,7 @@ const FileUploader = ({ const { getRootProps, getInputProps, isDragActive } = useDropzone({ onDrop, onDropRejected, + maxSize: MAX_FILE_SIZE, accept: { 'image/jpg': ['.jpg', '.jpeg', '.png', '.gif', '.svg', '.bmp', '.ico'], 'video/mp4': ['.mp4'], @@ -63,7 +64,6 @@ const FileUploader = ({ 'application/x-7z-compressed': ['.7z'], 'application/vnd.hancom.hwpx': ['.hwp', '.hwpx'], }, - maxSize: MAX_FILE_SIZE, }); const handleDeleteUploadFileClick = (fileName: string, fileId?: number) => {