Skip to content

Commit

Permalink
fix: 파일명 getOriginalName으로 가져오도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
gusah009 committed May 18, 2024
1 parent 6ca749a commit d7702ab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public ResponseEntity<FileForContentResponse> uploadFileForContent(
log.info("member \"{}\" uploaded file. memberId: {}, fileId: {}", member.getRealName(), member.getId(),
fileEntity.getId());
return ResponseEntity.status(HttpStatus.CREATED)
.body(FileForContentResponse.of("posts/files/" + fileEntity.getFileUUID(), file.getName()));
.body(FileForContentResponse.of("posts/files/" + fileEntity.getFileUUID(), file.getOriginalFilename()));
}

@GetMapping("/files/{fileUUID}")
Expand Down

0 comments on commit d7702ab

Please sign in to comment.