Closed Cnily03 closed 4 months ago
Thanks for opening your first issue here! Be sure to follow the issue template!
@xhofe 我也有类似需求,你觉得以下方式哪种比较好?
使用说明( 后续会补充到文档里 ):
请求参数加 type
, 可选值(不区分大小写):
UNKNOWN
FOLDER
VIDEO
AUDIO
TEXT
IMAGE
示例: http://alist.code.com/local/test.ahk?type=text
Please make sure of the following things
Description of the feature / 需求描述
诸如
Dockerfile
等文件固定为文本文件,但是当前的 alist 只能设置后缀名Suggested solution / 实现思路
希望对“预览”配置增加一个根据文件名(或其正则)的配置(而不仅仅是根据后缀名来设置)
或者在前端能够支持
?type=txt
的 URL 参数Additional context / 附件
No response