From 026ce088c638b50f493fe9aedf36e0659cb368c3 Mon Sep 17 00:00:00 2001
From: joonhoekim <26rote@gmail.com>
Date: Wed, 27 Aug 2025 06:33:14 +0000
Subject: (김준회) 벤더 도면업로드 - 도면 정보도 수신할 수 있도록 파일업로드
 대상 목록 변경
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 .../ship-vendor-document/add-attachment-dialog.tsx  | 21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)

(limited to 'components/ship-vendor-document/add-attachment-dialog.tsx')

diff --git a/components/ship-vendor-document/add-attachment-dialog.tsx b/components/ship-vendor-document/add-attachment-dialog.tsx
index fa6f73f1..61a078f7 100644
--- a/components/ship-vendor-document/add-attachment-dialog.tsx
+++ b/components/ship-vendor-document/add-attachment-dialog.tsx
@@ -50,9 +50,20 @@ const ACCEPTED_FILE_TYPES = [
   'text/plain',
   'application/zip',
   'application/x-zip-compressed',
-    // Presentations (added)
-    'application/vnd.ms-powerpoint',                                           // .ppt
-    'application/vnd.openxmlformats-officedocument.presentationml.presentation', // .pptx
+  // 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
 ]
 
 const attachmentUploadSchema = z.object({
@@ -134,13 +145,13 @@ 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 1GB)
+          Supports PDF, Word, Excel, Image, Text, ZIP, CAD files (DWG, DXF, STEP, STL, IGES) (max 1GB)
         </p>
         <input
           ref={fileInputRef}
           type="file"
           multiple
-          accept=".pdf,.doc,.docx,.xls,.xlsx,.jpg,.jpeg,.png,.gif,.txt,.zip"
+          accept=".pdf,.doc,.docx,.xls,.xlsx,.jpg,.jpeg,.png,.gif,.txt,.zip,.dwg,.dxf,.step,.stp,.stl,.iges,.igs"
           onChange={handleFileSelect}
           className="hidden"
         />
-- 
cgit v1.2.3

