From 7cf56a16d29622b5103fe2954d7535450b8e2b41 Mon Sep 17 00:00:00 2001 From: cnphpbb Date: Sat, 2 Nov 2019 01:53:08 +0800 Subject: [PATCH] =?UTF-8?q?doc:=E5=A2=9E=E5=8A=A0=E9=99=84=E4=BB=B6`ALLOWE?= =?UTF-8?q?D=5FTYPES`=E5=8F=96=E5=BE=97MIME=20type=E7=9A=84=E6=96=B9?= =?UTF-8?q?=E6=B3=95=20(#8770)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../doc/advanced/config-cheat-sheet.zh-cn.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md b/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md index a0e33c6370..53426ed983 100644 --- a/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md +++ b/docs/content/doc/advanced/config-cheat-sheet.zh-cn.md @@ -173,6 +173,20 @@ menu: - `MAX_SIZE`: 附件最大限制,单位 MB,比如: `4`。 - `MAX_FILES`: 一次最多上传的附件数量,比如: `5`。 +关于 `ALLOWED_TYPES`, 在 (*)unix 系统中可以使用`file -I ` 来快速获得对应的 `MIME type`。 + +```shell +$ file -I test00.tar.xz +test00.tar.xz: application/x-xz; charset=binary + +$ file --mime test00.xlsx +test00.xlsx: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet; charset=binary + +file -I test01.xls +test01.xls: application/vnd.ms-excel; charset=binary +``` + + ## Log (`log`) - `ROOT_PATH`: 日志文件根目录。