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());