fix: support additional admin attachment formats - #261
Merged
YoonKeumJae merged 2 commits intoJun 17, 2026
Conversation
There was a problem hiding this comment.
Pull request overview
Admin 첨부파일 업로드에서 추가 확장자(.ppt, .hwp, .hwpx)를 지원하고, 서버의 첨부 MIME allowlist를 UI와 맞추며, 업로드 실패 시 Admin 화면에 에러 상세(일부)를 노출해 원인 파악이 가능하도록 개선합니다.
Changes:
- (Server) 첨부파일 MIME allowlist에
.ppt/한글(HWP/HWPX) 계열 MIME 타입 추가 - (Server)
createFileMetadata에서 신규 MIME 타입을 허용하는 테스트 케이스 추가 - (Admin) 업로드 가능 확장자/accept 목록을 상수화하고, 업로드 실패 메시지에 에러 메시지(최대 180자)를 포함
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| Elevate.Server/tests/admin-attachments.test.js | createFileMetadata가 .ppt/.hwp/.hwpx MIME을 허용하는지 테스트 추가 |
| Elevate.Server/src/controllers/adminController.js | 서버 첨부파일 MIME allowlist에 PowerPoint(HWP/HWPX 포함) 타입 추가 |
| Elevate.Admin/src/components/editor/AttachUploader.jsx | Admin 업로드 UI에서 신규 확장자 지원, accept/안내 문구 자동화, 실패 에러 메시지 일부 표시 |
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.
Summary
.ppt,.hwp, and.hwpxValidation
npm testinElevate.Servernpm run lintinElevate.Adminnpm run buildinElevate.AdminReady for review.