We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ALLOWED_TYPES
1 parent ebcc381 commit 7cf56a1Copy full SHA for 7cf56a1
docs/content/doc/advanced/config-cheat-sheet.zh-cn.md
@@ -173,6 +173,20 @@ menu:
173
- `MAX_SIZE`: 附件最大限制,单位 MB,比如: `4`。
174
- `MAX_FILES`: 一次最多上传的附件数量,比如: `5`。
175
176
+关于 `ALLOWED_TYPES`, 在 (*)unix 系统中可以使用`file -I <filename>` 来快速获得对应的 `MIME type`。
177
+
178
+```shell
179
+$ file -I test00.tar.xz
180
+test00.tar.xz: application/x-xz; charset=binary
181
182
+$ file --mime test00.xlsx
183
+test00.xlsx: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=binary
184
185
+file -I test01.xls
186
+test01.xls: application/vnd.ms-excel; charset=binary
187
+```
188
189
190
## Log (`log`)
191
192
- `ROOT_PATH`: 日志文件根目录。
0 commit comments