summaryrefslogtreecommitdiff
path: root/components/ship-vendor-document/add-attachment-dialog.tsx
diff options
context:
space:
mode:
authorjoonhoekim <26rote@gmail.com>2025-08-27 06:33:14 +0000
committerjoonhoekim <26rote@gmail.com>2025-08-27 06:33:14 +0000
commit026ce088c638b50f493fe9aedf36e0659cb368c3 (patch)
tree3429dd86533b60a4d6a28b6ca909101bc3277867 /components/ship-vendor-document/add-attachment-dialog.tsx
parent818a500d9969d1c03098f612bb0b68502b6a5ae2 (diff)
(김준회) 벤더 도면업로드 - 도면 정보도 수신할 수 있도록 파일업로드 대상 목록 변경
Diffstat (limited to 'components/ship-vendor-document/add-attachment-dialog.tsx')
-rw-r--r--components/ship-vendor-document/add-attachment-dialog.tsx21
1 files changed, 16 insertions, 5 deletions
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"
/>