diff options
Diffstat (limited to 'components')
| -rw-r--r-- | components/ship-vendor-document/add-attachment-dialog.tsx | 21 |
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" /> |
