Skip to content

Commit

Permalink
hotfix: Aws file 컨텐트 타입 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
TaeyeonRoyce committed Oct 12, 2023
1 parent 943dd95 commit b0e4fb4
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public void upload(MultipartFile file) {
PutObjectRequest putObjectRequest = PutObjectRequest.builder()
.bucket(awsS3Property.bucket())
.key(awsS3Property.key() + encodedFileName)
.contentType(file.getContentType())
.contentDisposition("inline")
.build();
RequestBody requestBody = RequestBody.fromInputStream(file.getInputStream(), file.getSize());
s3Client.putObject(putObjectRequest, requestBody);
Expand Down

0 comments on commit b0e4fb4

Please sign in to comment.