From 2d17123b749b4e3acefda55b98ff00623d8d81e9 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子li <15040126243@163.com>
Date: 星期五, 23 七月 2021 10:50:03 +0800
Subject: [PATCH] update springboot 2.4.8 => 2.4.9 update hutool 5.7.4 => 5.7.5 update minio 8.2.2 => 8.3.0 update docker plugin 1.2.0 => 1.2.2

---
 ruoyi-oss/src/main/java/com/ruoyi/system/service/impl/SysOssServiceImpl.java |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ruoyi-oss/src/main/java/com/ruoyi/system/service/impl/SysOssServiceImpl.java b/ruoyi-oss/src/main/java/com/ruoyi/system/service/impl/SysOssServiceImpl.java
index 994458b..ccbf2ad 100644
--- a/ruoyi-oss/src/main/java/com/ruoyi/system/service/impl/SysOssServiceImpl.java
+++ b/ruoyi-oss/src/main/java/com/ruoyi/system/service/impl/SysOssServiceImpl.java
@@ -59,7 +59,7 @@
 		ICloudStorageService storage = OssFactory.instance();
 		UploadResult uploadResult;
 		try {
-			uploadResult = storage.uploadSuffix(file.getBytes(), suffix);
+			uploadResult = storage.uploadSuffix(file.getBytes(), suffix, file.getContentType());
 		} catch (IOException e) {
 			throw new CustomException("鏂囦欢璇诲彇寮傚父!!!", e);
 		}

--
Gitblit v1.9.3