From 17a63efca1833f334d9d16ff4ede994d15df6030 Mon Sep 17 00:00:00 2001 From: wenc000 <450292408@qq.com> Date: Sat, 18 Jul 2020 10:19:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=86PDF=E7=9A=84?= =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E6=89=93=E5=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cm/common/plugin/service/file/impl/FileServiceImpl.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cloud-common-plugin/src/main/java/com/cm/common/plugin/service/file/impl/FileServiceImpl.java b/cloud-common-plugin/src/main/java/com/cm/common/plugin/service/file/impl/FileServiceImpl.java index 24aef54..ffba6c7 100644 --- a/cloud-common-plugin/src/main/java/com/cm/common/plugin/service/file/impl/FileServiceImpl.java +++ b/cloud-common-plugin/src/main/java/com/cm/common/plugin/service/file/impl/FileServiceImpl.java @@ -642,6 +642,9 @@ public class FileServiceImpl extends AbstractService implements IFileService { case "apk": contentType = "application/vnd.android.package-archive"; break; + case "pdf": + contentType = "application/pdf"; + break; default: contentType = "application/octet-stream"; }