diff options
Diffstat (limited to 'components/ship-vendor-document/new-revision-dialog.tsx')
| -rw-r--r-- | components/ship-vendor-document/new-revision-dialog.tsx | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/components/ship-vendor-document/new-revision-dialog.tsx b/components/ship-vendor-document/new-revision-dialog.tsx index 68c7a946..a1ddad13 100644 --- a/components/ship-vendor-document/new-revision-dialog.tsx +++ b/components/ship-vendor-document/new-revision-dialog.tsx @@ -62,11 +62,23 @@ const ACCEPTED_FILE_TYPES = [ 'text/plain', 'application/zip', 'application/x-zip-compressed', - // Presentations (added) + // Presentations 'application/vnd.ms-powerpoint', // .ppt 'application/vnd.openxmlformats-officedocument.presentationml.presentation', // .pptx + // CAD and Drawing files + 'application/acad', // .dwg + 'image/vnd.dwg', // .dwg (alternative MIME) + 'application/x-autocad', // .dwg (alternative MIME) + 'application/dxf', // .dxf + 'image/vnd.dxf', // .dxf (alternative MIME) + 'application/x-dxf', // .dxf (alternative MIME) + 'application/step', // .step/.stp + 'application/sla', // .stl + 'model/stl', // .stl (alternative MIME) + 'application/iges', // .iges/.igs ] + // drawingKind에 따른 동적 스키마 생성 const createRevisionUploadSchema = (drawingKind: string) => { const baseSchema = { @@ -80,10 +92,10 @@ const createRevisionUploadSchema = (drawingKind: string) => { (files) => files.every((file) => file.size <= MAX_FILE_SIZE), "File size must be 50MB or less" ) - .refine( - (files) => files.every((file) => ACCEPTED_FILE_TYPES.includes(file.type)), - "Unsupported file format" - ), + // .refine( + // (files) => files.every((file) => ACCEPTED_FILE_TYPES.includes(file.type)), + // "Unsupported file format" + // ), } // B3인 경우에만 usageType 필드 추가 |
