Skip to content

Commit

Permalink
HOTIFX: 첨부파일 용량 수정, 게시글 업데이트 로직 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
hyxklee committed Aug 27, 2024
1 parent 3324484 commit f9babec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,17 @@ public void updateCommentCount(List<Comment> comments) {
public void updateUpperClass(NoticeDTO.Update dto, List<String> fileUrls) {
this.title = dto.title();
this.content = dto.content();
this.fileUrls = fileUrls;
if (!fileUrls.isEmpty()) {
this.fileUrls = fileUrls;
}
}

public void updateUpperClass(PostDTO.Update dto, List<String> fileUrls) {
this.title = dto.title();
this.content = dto.content();
this.fileUrls = fileUrls;
if (!fileUrls.isEmpty()) {
this.fileUrls = fileUrls;
}
}

}
4 changes: 2 additions & 2 deletions src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ spring:
servlet:
multipart:
enabled: true
max-file-size: 10MB
max-request-size: 10MB
max-file-size: 20MB
max-request-size: 40MB
thymeleaf:
prefix: classpath:/templates/
suffix: .html
Expand Down

0 comments on commit f9babec

Please sign in to comment.