diff options
| author | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-07-25 07:51:15 +0000 |
|---|---|---|
| committer | dujinkim <dujin.kim@dtsolution.co.kr> | 2025-07-25 07:51:15 +0000 |
| commit | 2650b7c0bb0ea12b68a58c0439f72d61df04b2f1 (patch) | |
| tree | 17156183fd74b69d78178065388ac61a18ac07b4 /components/ship-vendor-document | |
| parent | d32acea05915bd6c1ed4b95e56c41ef9204347bc (diff) | |
(대표님) 정기평가 대상, 미들웨어 수정, nextauth 토큰 처리 개선, GTC 등
(최겸) 기술영업
Diffstat (limited to 'components/ship-vendor-document')
| -rw-r--r-- | components/ship-vendor-document/add-attachment-dialog.tsx | 6 | ||||
| -rw-r--r-- | components/ship-vendor-document/new-revision-dialog.tsx | 5 |
2 files changed, 5 insertions, 6 deletions
diff --git a/components/ship-vendor-document/add-attachment-dialog.tsx b/components/ship-vendor-document/add-attachment-dialog.tsx index a285b4de..8357c0b6 100644 --- a/components/ship-vendor-document/add-attachment-dialog.tsx +++ b/components/ship-vendor-document/add-attachment-dialog.tsx @@ -38,7 +38,7 @@ import { useSession } from "next-auth/react" * -----------------------------------------------------------------------------------------------*/ // 파일 검증 스키마 -const MAX_FILE_SIZE = 50 * 1024 * 1024 // 50MB +const MAX_FILE_SIZE = 1024 * 1024 * 1024 // 50MB const ACCEPTED_FILE_TYPES = [ 'application/pdf', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', @@ -56,7 +56,7 @@ const attachmentUploadSchema = z.object({ attachments: z .array(z.instanceof(File)) .min(1, "Please upload at least 1 file") - .max(10, "Maximum 10 files can be uploaded") + // .max(10, "Maximum 10 files can be uploaded") .refine( (files) => files.every((file) => file.size <= MAX_FILE_SIZE), "File size must be 50MB or less" @@ -131,7 +131,7 @@ function FileUploadArea({ Drag files to add here or click to select </p> <p className="text-xs text-gray-500"> - Supports PDF, Word, Excel, Image, Text, ZIP files (max 50MB) + Supports PDF, Word, Excel, Image, Text, ZIP files (max 1GB) </p> <input ref={fileInputRef} diff --git a/components/ship-vendor-document/new-revision-dialog.tsx b/components/ship-vendor-document/new-revision-dialog.tsx index 7adc0b3a..8ca6d533 100644 --- a/components/ship-vendor-document/new-revision-dialog.tsx +++ b/components/ship-vendor-document/new-revision-dialog.tsx @@ -50,7 +50,7 @@ import { useSession } from "next-auth/react" * -----------------------------------------------------------------------------------------------*/ // 파일 검증 스키마 -const MAX_FILE_SIZE = 50 * 1024 * 1024 // 50MB +const MAX_FILE_SIZE = 1024 * 1024 * 1024 // 50MB const ACCEPTED_FILE_TYPES = [ 'application/pdf', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', @@ -73,7 +73,6 @@ const createRevisionUploadSchema = (drawingKind: string) => { attachments: z .array(z.instanceof(File)) .min(1, "Please upload at least 1 file") - .max(10, "Maximum 10 files can be uploaded") .refine( (files) => files.every((file) => file.size <= MAX_FILE_SIZE), "File size must be 50MB or less" @@ -219,7 +218,7 @@ function FileUploadArea({ Drag files here or click to select </p> <p className="text-xs text-gray-500"> - Supports PDF, Word, Excel, Image, Text, ZIP files (max 50MB) + Supports PDF, Word, Excel, Image, Text, ZIP files (max 1GB) </p> <input ref={fileInputRef} |
