Skip to content

fix: 이미지 최대 20MB 까지 업로드 가능하도록 변경 - #541

Merged
pepperdad merged 1 commit into
developfrom
fix/image-max-size
Aug 28, 2026
Merged

pepperdad merged 1 commit into
developfrom
fix/image-max-size

Conversation

@pepperdad

@pepperdad pepperdad commented Aug 28, 2026 •

Copy link
Copy Markdown
Member

📌 관련 이슈번호

  • Closes #

🎟️ PR 유형

어떤 변경 사항이 있나요?

  • 새 기능 추가
  • 버그 수정
  • CSS 등 사용자 UI 디자인 변경
  • 리팩토링

✅ Key Changes

이번 PR에서 작업한 내용을 간략히 설명해주세요

  1. 작업 내용

📢 To Reviewers

📸 스크린샷

🔗 참고 자료

@pepperdad pepperdad self-assigned this Aug 28, 2026
@github-actions github-actions Bot added 🐛 BUG 버그를 고친 경우 ✨ FEAT 기능 구현 labels Aug 28, 2026
@github-actions

Copy link
Copy Markdown

PR 작성하느라 고생 많았어요!! 라벨 잘 지정되었는지 확인 한 번 해 주기 🫶

@sonarqubecloud

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
38.8% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@coderabbitai

coderabbitai Bot commented Aug 28, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 80494cc6-56a8-4081-9a56-948256ae81e1

📥 Commits

Reviewing files that changed from the base of the PR and between 8ca0c58 and 2e247a3.

📒 Files selected for processing (5)
  • src/admin/pages/promotion/components/cardCarousel/CardCarousel.tsx
  • src/apis/domains/files/queries.ts
  • src/pages/modifyManage/components/RoleWrapper.tsx
  • src/pages/register/components/PosterThumbnail.tsx
  • src/pages/register/components/RoleWrapper.tsx

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


Summary by CodeRabbit

  • 개선 사항
    • 이미지 업로드 시 파일 크기를 최대 20MB로 제한합니다.
    • 제한을 초과한 파일을 선택하면 즉시 안내 알림이 표시되고 업로드가 중단됩니다.
    • 파일 입력값이 초기화되어 같은 파일을 다시 선택할 수 있습니다.
    • 크기 제한을 통과한 이미지만 미리보기 및 편집 과정으로 진행됩니다.

Walkthrough

이미지 업로드 경로에 20MiB 제한을 추가했습니다. 제한을 초과한 파일은 알림을 표시하고 입력값을 초기화한 뒤 처리하지 않습니다. 제한을 통과한 파일은 기존 미리보기와 편집 흐름을 유지합니다.

Changes

이미지 업로드 용량 검증

Layer / File(s) Summary
공통 파일 크기 제한 정의
src/apis/domains/files/queries.ts
파일 업로드 최대 크기를 MAX_FILE_SIZE로 정의하고 값은 20MiB로 설정했습니다.
업로드 입력 검증 및 알림
src/admin/pages/promotion/components/cardCarousel/CardCarousel.tsx, src/pages/modifyManage/components/RoleWrapper.tsx, src/pages/register/components/PosterThumbnail.tsx, src/pages/register/components/RoleWrapper.tsx
각 업로드 처리 전에 파일 크기를 검사합니다. 제한 초과 시 openAlert를 호출하고 e.target.value를 초기화한 뒤 처리를 중단합니다.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Merge Risk: 🔵 Low · up to 2e247

브라우저에서 20MiB 초과 이미지 업로드를 차단하지만, presigned 업로드와 저장소 정책에서 동일한 제한이 적용되는지는 확인되지 않았습니다. 우회 클라이언트가 더 큰 파일을 업로드할 가능성이 있어 백엔드 또는 저장소 제한을 확인한다는 전제에서 병합할 수 있습니다.

Poem

당근을 든 토끼가 파일을 살피네
20MiB 문턱을 또렷이 세우네
큰 파일엔 알림을 살며시 띄우고
입력값은 깨끗이 비워 두네
작은 파일은 편집 길을 달리네

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning 설명은 템플릿의 주요 섹션을 포함하지만, 관련 이슈 번호가 비어 있고 Key Changes에 실제 변경 내용 대신 '작업 내용'이 남아 있습니다. 리뷰어 안내, 스크린샷, 참고 자료도 작성되지 않았습니다. Closes #에 실제 이슈 번호를 입력하고, Key Changes에 이미지 업로드 크기 검증 및 20MB 제한 적용 내용을 작성하세요. 해당되는 경우 To Reviewers, 스크린샷, 참고 자료도 추가하세요.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed 제목은 이미지 업로드 최대 용량을 20MB로 변경하는 주요 내용을 정확하고 간결하게 설명합니다.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 5…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 5 files.

  • Fix all pre-merge checks with AI
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/image-max-size

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@github-actions

Copy link
Copy Markdown

@pepperdad
pepperdad merged commit acc9922 into develop Aug 28, 2026
6 of 9 checks passed
@github-project-automation github-project-automation Bot moved this from ✅Todo to 🎉Done in 🌱beat-board Aug 28, 2026
@pepperdad
pepperdad deleted the fix/image-max-size branch August 29, 2026 02:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 BUG 버그를 고친 경우 ✨ FEAT 기능 구현

Projects

Status: 🎉Done

Development

Successfully merging this pull request may close these issues.

1 participant