|
|
@ -151,6 +151,7 @@ public class S3Service {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
PutObjectRequest putObjectRequest = PutObjectRequest.builder()
|
|
|
|
PutObjectRequest putObjectRequest = PutObjectRequest.builder()
|
|
|
|
.bucket(bucket)
|
|
|
|
.bucket(bucket)
|
|
|
|
|
|
|
|
.contentType(file.getContentType())
|
|
|
|
.key(key)
|
|
|
|
.key(key)
|
|
|
|
.build();
|
|
|
|
.build();
|
|
|
|
RequestBody requestBody = RequestBody.fromInputStream(file.getInputStream(), file.getSize());
|
|
|
|
RequestBody requestBody = RequestBody.fromInputStream(file.getInputStream(), file.getSize());
|
|
|
|