[GH-ISSUE #841] [BUG]: Bad Mime-type mapping for TS files #494

Closed
opened 2026-02-22 18:19:46 -05:00 by yindo · 1 comment
Owner

Originally created by @PiotrSkon on GitHub (Feb 29, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/841

What would you like to see?

Was hoping to do a bit of research on LLM's and RAG and all that against my code (Angular, TypeScript, HTML, CSS).
Dragged in my source files and it failed to parse .ts files :/ A real bummer. HTML went through but, that's useless without the component code.

image

Originally created by @PiotrSkon on GitHub (Feb 29, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/841 ### What would you like to see? Was hoping to do a bit of research on LLM's and RAG and all that against my code (Angular, TypeScript, HTML, CSS). Dragged in my source files and it failed to parse .ts files :/ A real bummer. HTML went through but, that's useless without the component code. ![image](https://github.com/Mintplex-Labs/anything-llm/assets/592773/5d397cf2-9613-42de-9e39-08d0feede5a3)
yindo added the bug label 2026-02-22 18:19:46 -05:00
yindo closed this issue 2026-02-22 18:19:46 -05:00
Author
Owner

@timothycarambat commented on GitHub (Feb 29, 2024):

The reason for this is really a bug. The Mime library maps this extension to video/mp2t because .ts has been a file extension long before typescript. Nobody is using that file for this so we should override this and others

https://en.wikipedia.org/wiki/MPEG_transport_stream

@timothycarambat commented on GitHub (Feb 29, 2024): The reason for this is really a bug. The Mime library maps this extension to `video/mp2t` because `.ts` has been a file extension long before typescript. Nobody is using that file for this so we should override this and others https://en.wikipedia.org/wiki/MPEG_transport_stream
yindo changed title from [BUG]: Bad Mime-type mapping for TS files to [GH-ISSUE #841] [BUG]: Bad Mime-type mapping for TS files 2026-06-05 14:35:36 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#494