summaryrefslogtreecommitdiff
path: root/components/ship-vendor-document
diff options
context:
space:
mode:
Diffstat (limited to 'components/ship-vendor-document')
-rw-r--r--components/ship-vendor-document/add-attachment-dialog.tsx8
-rw-r--r--components/ship-vendor-document/new-revision-dialog.tsx22
2 files changed, 21 insertions, 9 deletions
diff --git a/components/ship-vendor-document/add-attachment-dialog.tsx b/components/ship-vendor-document/add-attachment-dialog.tsx
index 61a078f7..1e9bfb51 100644
--- a/components/ship-vendor-document/add-attachment-dialog.tsx
+++ b/components/ship-vendor-document/add-attachment-dialog.tsx
@@ -75,10 +75,10 @@ const attachmentUploadSchema = z.object({
(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"
+ // ),
})
interface AddAttachmentDialogProps {
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 필드 추가