From d1e36552053acd1eca5a6ad8994f78a013f5d09a Mon Sep 17 00:00:00 2001 From: liulin <lin.liu@88.com> Date: 星期五, 11 七月 2025 15:15:29 +0800 Subject: [PATCH] 修改资源上传路径 --- src/main/resources/upload_allow.json | 25 +++++++++++++++++++++++++ 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/src/main/resources/upload_allow.json b/src/main/resources/upload_allow.json new file mode 100644 index 0000000..d3e7530 --- /dev/null +++ b/src/main/resources/upload_allow.json @@ -0,0 +1,25 @@ +{ + "image/jpeg": "jpg", + "image/jpg": "jpg", + "image/gif": "gif", + "image/png": "png", + "image/bmp": "bmp", + + "application/zip": "zip", + "application/x-rar": "rar", + "application/x-7z-compressed": "7z", + "application/x-gzip": "gz", + "application/x-tar": "tar", + + "application/pdf": "pdf", + + "application/msword": "doc", + "application/vnd.ms-excel": "xls", + "application/vnd.ms-powerpoint": "ppt", + "application/vnd.openxmlformats-officedocument.wordprocessingml.document": "docx", + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "xlsx", + "application/vnd.openxmlformats-officedocument.presentationml.presentation": "pptx", + + "text/markdown": "md", + "text/plain": "txt" +} \ No newline at end of file -- Gitblit v1.9.3