Chore/Enhance file upload functionality in createAttachment (#5280)

Enhance file upload functionality in createAttachment

- Added support for configurable allowed file types and file upload status in createFileAttachment.
- Implemented validation to ensure uploaded files match allowed types, throwing errors for disallowed types.
This commit is contained in:
Henry Heng
2025-10-06 11:13:08 +01:00
committed by GitHub
parent 7a50755546
commit 1a410d84ac
2 changed files with 39 additions and 7 deletions
@@ -18,7 +18,7 @@ import useNotifier from '@/utils/useNotifier'
// API
import chatflowsApi from '@/api/chatflows'
const message = `Uploaded files will be parsed as strings and sent to the LLM. If file upload is enabled on the Vector Store as well, this will override and take precedence.
const message = `The full contents of uploaded files will be converted to text and sent to the Agent.
<br />
Refer <a href='https://docs.flowiseai.com/using-flowise/uploads#files' target='_blank'>docs</a> for more details.`