SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.
JavaScript a2aagentic-aiai-agentsdevtoolsmcp-clientn8n-alternativeno-codeopen-sourceorchestrationsmythosvisual-builder
Add support for additional file types in AI chat utils
Salman-Ahameddccbcd18a043
diff --git a/packages/app/src/react/features/ai-chat/utils/file.ts b/packages/app/src/react/features/ai-chat/utils/file.tsindex edb98c19..68dda650 100644--- a/packages/app/src/react/features/ai-chat/utils/file.ts+++ b/packages/app/src/react/features/ai-chat/utils/file.ts@@ -16,6 +16,11 @@ export const FILE_LIMITS = {export const FILE_TYPES = {PDF: 'application/pdf',IMAGE: ['image/jpeg', 'image/png', 'image/gif', 'image/webp'] as const,+ CSV: ['text/csv', 'application/csv'] as const,+ EXCEL: [+ 'application/vnd.ms-excel',+ 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',+ ] as const,} as const;type ImageMimeType = (typeof FILE_TYPES.IMAGE)[number];@@ -96,7 +101,7 @@ export const validateSingleFile = (file: File): string | null => {});if (!isValidType) {- return 'File type not supported';+ return 'File type not supported.';}return null;