[GH-ISSUE #346] Code File Types upload query #199

Closed
opened 2026-02-22 18:18:19 -05:00 by yindo · 2 comments
Owner

Originally created by @a7t0fwa7 on GitHub (Nov 7, 2023).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/346

Hey There, does anything-llm support uploading code files? I tried to upload one C file to test it out but is seems like the file format is not accepted, do we need to convert these file types into a text format first?
Cheers

Originally created by @a7t0fwa7 on GitHub (Nov 7, 2023). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/346 Hey There, does anything-llm support uploading code files? I tried to upload one C file to test it out but is seems like the file format is not accepted, do we need to convert these file types into a text format first? Cheers
yindo closed this issue 2026-02-22 18:18:19 -05:00
Author
Owner

@timothycarambat commented on GitHub (Nov 8, 2023):

If you simply renamed the file from .cpp or .c to .txt you could upload and its format would not matter.

We have an issue for alternative file-type chunking so it works better with specific types of files are regular chunking on code could split in the middle of a function.

Alternatively, you could just not embed the file at all and past the code directly into chat and that would probably work too (depending on size)

@timothycarambat commented on GitHub (Nov 8, 2023): If you simply renamed the file from .cpp or .c to `.txt` you could upload and its format would not matter. We have an issue for alternative file-type chunking so it works better with specific types of files are regular chunking on code could split in the middle of a function. Alternatively, you could just not embed the file at all and past the code directly into chat and that would probably work too (depending on size)
Author
Owner

@a7t0fwa7 commented on GitHub (Nov 8, 2023):

Thanks mate, yeah i know but i have thousands of hundreds of scripts in different languages which is a pain to change each one by one, I created a fork of your repo and implemented the functionality, only issue is it that you need to feed your files manually using the watch.py script, once the files are processed you can then use them in in the normal way on the UI.

@a7t0fwa7 commented on GitHub (Nov 8, 2023): Thanks mate, yeah i know but i have thousands of hundreds of scripts in different languages which is a pain to change each one by one, I created a fork of your repo and implemented the functionality, only issue is it that you need to feed your files manually using the watch.py script, once the files are processed you can then use them in in the normal way on the UI.
yindo changed title from Code File Types upload query to [GH-ISSUE #346] Code File Types upload query 2026-06-05 14:34:01 -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#199