Add support for file type: text/x-c++hdr #8576
Replies: 2 comments 1 reply
-
hey — just saw your post. this kind of MIME mismatch ( i’ve actually documented this as one of the “RAG ingestion blockers” in a diagnostic map here: quick fix (if you’re okay patching locally): if you're building a custom RAG backend — worth having a normalization layer that handles these edge cases before upload. let me know if you need a config patch, I’ve run into this exact thing before. happy to help. |
Beta Was this translation helpful? Give feedback.
-
got it — and yep, you're exactly right: the UI layer rejects the file type before it reaches backend parsing. in our setup, we fixed this by patching both:
this MIME issue is actually one of the 16 known ingestion blockers we've documented here: I'll clean up the config patch and drop it here for you in a bit — it's super reusable if you're planning to scale file uploads. by the way — our system got a rare star from Tesseract.js creator mainly because it solves a bunch of silent ingestion bugs like this one. if you're curious, happy to show you more. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
Hi, when I tried to upload a .hpp file or a .h file to my agent i got this error: Currently, unsupported file type: text/x-c++hdr. I really want those C files can be uploaded as text like other file format for code refactor purpose
Version Information
ghcr.io/danny-avila/librechat-dev latest f83016cbd11a 2 months ago 1.02GB
ghcr.io/danny-avila/librechat latest 17cfdb1df083 2 months ago 1.02GB
ghcr.io/danny-avila/librechat-rag-api-dev-lite latest e7da8e6aca0f 2 months ago 1.31GB
Steps to Reproduce
What browsers are you seeing the problem on?
Chrome
Relevant log output
Screenshots
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions