From 6e35920d2e6fa44c9238a40e8837d0dd5892facc Mon Sep 17 00:00:00 2001 From: wangqing <408564126@qq.com> Date: Thu, 14 Mar 2024 10:59:16 +0800 Subject: [PATCH] fix cms upload journal image with content-type --- luoo_music/src/main/java/com/luoo/music/service/S3Service.java | 1 + 1 file changed, 1 insertion(+) diff --git a/luoo_music/src/main/java/com/luoo/music/service/S3Service.java b/luoo_music/src/main/java/com/luoo/music/service/S3Service.java index 9cc1086..2510677 100644 --- a/luoo_music/src/main/java/com/luoo/music/service/S3Service.java +++ b/luoo_music/src/main/java/com/luoo/music/service/S3Service.java @@ -151,6 +151,7 @@ public class S3Service { try { PutObjectRequest putObjectRequest = PutObjectRequest.builder() .bucket(bucket) + .contentType(file.getContentType()) .key(key) .build(); RequestBody requestBody = RequestBody.fromInputStream(file.getInputStream(), file.getSize());