From 18954df6565108a469fb1608ea3715dd9bb1b02d Mon Sep 17 00:00:00 2001
From: dujinkim <dujin.kim@dtsolution.co.kr>
Date: Mon, 1 Sep 2025 09:12:09 +0000
Subject: (대표님) 구매 기본계약, gtc 개발
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../ship-vendor-document/new-revision-dialog.tsx   | 22 +++++++++++++++++-----
 1 file changed, 17 insertions(+), 5 deletions(-)

(limited to 'components/ship-vendor-document/new-revision-dialog.tsx')

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 필드 추가
-- 
cgit v1.2.3

