Skip to content

fix: knowledge upload file types have single source of truth#878

Merged
lucaseduoli merged 8 commits into
langflow-ai:mainfrom
philnash:philnash/upload-file-types
Feb 9, 2026
Merged

fix: knowledge upload file types have single source of truth#878
lucaseduoli merged 8 commits into
langflow-ai:mainfrom
philnash:philnash/upload-file-types

Conversation

@philnash

@philnash philnash commented Jan 30, 2026

Copy link
Copy Markdown
Member

Fixes #877.

Uses the const SUPPORTED_EXTENSIONS from the knowledge upload page to make the uploaded file types consistent across all parts of the app.

Added the list of supported file types to the docs too. Gave it a header and linked from the troubleshooting section.

phact
phact previously requested changes Feb 4, 2026
Comment thread frontend/app/chat/_components/chat-input.tsx Outdated
@philnash philnash requested a review from phact February 4, 2026 05:35
@philnash philnash force-pushed the philnash/upload-file-types branch from b068583 to 745fce2 Compare February 4, 2026 23:19
Comment on lines +39 to +66
### Supported file types

OpenRAG supports ingesting the following document types:

* .pdf
* .doc
* .docx
* .pptx
* .ppt
* .xlsx
* .xls
* .csv
* .txt
* .md
* .html
* .htm
* .rtf
* .odt
* .asciidoc
* .adoc
* .png
* .jpg
* .jpeg
* .gif
* .bmp
* .tiff
* .webp

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wouldn't include these in the docs for two reasons:

  1. They can see the list in the app, and it is more relevant at the "point of performance" when they are uploading files.
  2. Someone will have to remember to edit this list any time SUPPORTED_FILE_TYPES changes, so it could become misaligned easily.

@philnash philnash Feb 6, 2026

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't believe this full list is displayed in the app anywhere and the troubleshooting page specifically says to "Make sure you ingest only supported file types" without otherwise listing what those are.

As for having to keep the documentation in line with the application, that's true for all features. The logical conclusion to that argument is that we don't have docs at all.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh I apologize. I thought this PR added the list to the UI as well.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am working on another PR to reorganize some of the knowledge content. It will probably conflict with this PR. I will add this list to my PR so it doesn't get lost.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could add a comment in the code pointing to the list in the docs as a reminder to update the list.

Comment thread frontend/components/knowledge-dropdown.tsx
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": [".xlsx"],
"text/csv": [".csv"],
"text/plain": [".txt"],
"text/markdown": [".md"],

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is .mdx supported?

Suggested change
"text/markdown": [".md"],
"text/markdown": [".md", ".mdx"],

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not according to the Docling Serve component in Langflow.

@lucaseduoli lucaseduoli left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@lucaseduoli lucaseduoli merged commit cf023a6 into langflow-ai:main Feb 9, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: onboarding flow, chat input, and knowledge upload support different file types

4 participants