[Hotfix] fix recent news image upload issue - #303
Merged
Conversation
수정(PATCH) 요청이 파일을 S3에 올리지 않고 File 객체를 그대로 보내고 있어 백엔드가 이미지를 제대로 처리하지 못했다. 등록(v2) 플로우와 동일하게 presigned URL 발급 후 S3 업로드, URL 전달 방식으로 통일했다.
/admin/home 응답은 뉴스 이미지마다 새 presigned URL을 발급하는데, 이 URL에 실제 업로드하는 로직이 없어 confirm 시 이미지가 빈 채로 반영되고 있었다. 기존 이미지를 받아 해당 URL로 재업로드하도록 추가했다.
편집모드 중 draft를 서버 데이터로 동기화하지 않도록 막은 기존 로직 때문에, 편집 중 새로 추가/삭제한 리뷰·최신소식이 draft에 반영되지 않아 배포 시 누락되는 문제가 있었다. 로컬 재정렬 순서는 유지하면서 추가/삭제된 항목만 반영하는 병합 로직(reconcileWithServerData)으로 교체했다.
"00mb"로 잘못 표기되어 있던 용량 제한 안내를 "10mb"로 수정했다.
안내 이미지가 정상적으로 뜨지 않는 이슈가 있어 관련 버튼과 모달을 임시로 주석 처리했다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
✨ 구현 기능 명세
✅ PR Point