Prerequisites
Feature Description
The file upload filter in the new llama-server web UI is too restrictive and rejects many valid text file formats without any option to override the automatic detection. It should be possible to disable the check, or at the very least add an option to easily add custom allowed file extensions.
Motivation
Copied from #17556 :
I don't think it is feasible to include every single possible file extension in a list of "text files" (currently I'm noticing that many source file types like .vhdl, .vdh, .v, .sv, .tcl are all missing, and that's just stuff I regularly use at work), not to mention that some applications hide a "known text file" under a different extension (like an .ini file with .settings extension), or that some text files may not have an extension (like Makefile, or the default file name for results from whisper.cpp server, which is named "inference").
I.e., there will always be edge cases and the list of allowed extensions can never be complete, so an easily accessible user override is desirable.
Possible Implementation
When the text file is rejected as "not supported", the dialog could simply add a button or checkbox saying "treat attachment as plain text file".
Prerequisites
Feature Description
The file upload filter in the new llama-server web UI is too restrictive and rejects many valid text file formats without any option to override the automatic detection. It should be possible to disable the check, or at the very least add an option to easily add custom allowed file extensions.
Motivation
Copied from #17556 :
I don't think it is feasible to include every single possible file extension in a list of "text files" (currently I'm noticing that many source file types like .vhdl, .vdh, .v, .sv, .tcl are all missing, and that's just stuff I regularly use at work), not to mention that some applications hide a "known text file" under a different extension (like an .ini file with .settings extension), or that some text files may not have an extension (like Makefile, or the default file name for results from whisper.cpp server, which is named "inference").
I.e., there will always be edge cases and the list of allowed extensions can never be complete, so an easily accessible user override is desirable.
Possible Implementation
When the text file is rejected as "not supported", the dialog could simply add a button or checkbox saying "treat attachment as plain text file".