Skip to content

Commit d87d990

Browse files
authored
Docs: add type query parameter usage for preview (src AlistGo/alist-web#177) (#349)
1 parent 1de9375 commit d87d990

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed

docs/config/preview.md

+17
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,20 @@ Whether to automatically play video files.
115115
### **Proxy ignore headers**
116116

117117
For details, please check: **https://github.com/alist-org/alist/issues/2763**
118+
119+
### **Force preview**
120+
121+
We can force the preview type through the `type` query parameter.
122+
123+
Available values:
124+
125+
```
126+
UNKNOWN
127+
FOLDER
128+
VIDEO
129+
AUDIO
130+
TEXT
131+
IMAGE
132+
```
133+
134+
Example: `http://yourdomain/test-file.ahk?type=text`

docs/zh/config/preview.md

+16
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,19 @@ interface {
117117

118118
详情查看: **https://github.com/alist-org/alist/issues/2763**
119119

120+
### **强制预览**
121+
122+
可以通过 `type` 请求参数来强制设置预览类型。
123+
124+
可选值:
125+
126+
```
127+
UNKNOWN
128+
FOLDER
129+
VIDEO
130+
AUDIO
131+
TEXT
132+
IMAGE
133+
```
134+
135+
示例: `http://yourdomain/test-file.ahk?type=text`

0 commit comments

Comments
 (0)