Skip to content

Conversation

@yechan-kim
Copy link
Member

@yechan-kim yechan-kim commented Mar 5, 2025

✅ PR 유형

어떤 변경 사항이 있었나요?

  • 새로운 기능 추가
  • 버그 수정
  • 리팩토링
  • 코드에 영향을 주지 않는 변경사항(주석, 개행 등등..)
  • 문서 수정
  • 빌드 부분 혹은 패키지 매니저 수정
  • 테스트 코드 추가

✏️ 작업 내용

S3 버킷에 한글 파일명으로 업로드 시 발생하는 오류를 해결하였습니다.

Note

해당 오류가 발생한 원인이 무엇인가요?

metadatacontentDisposition은 브라우저가 파일 다운로드 시 처리하는 HTTP 헤더입니다. 해당 데이터는 영어 이외의 문자를 포함하면 반드시 인코딩을 적용해야 하는데, S3 버킷에 한글 파일을 업로드할 때 인코딩이 되는 로직이 빠져있어 발생한 오류입니다.

SWAGGER Test

image

S3 버킷 업로드 정보

image

S3 버킷에서 다운로드하는 이미지

image

PreSignedUrl 생성 코드를 간결화하고 가독성을 향상시켰습니다.

S3 버킷 업로드 정보

image

🔗 관련 이슈


💡 추가 사항

  • PreSignedUrl을 통해 업로드되는 파일은 UUID와 파일 이름을-을 통해서 구별하도록 변경하였습니다!

@yechan-kim yechan-kim added 🐛 bug 버그 리포트 ♻️ refactor 코드 리팩토링 labels Mar 5, 2025
@yechan-kim yechan-kim requested a review from 1winhyun March 5, 2025 07:43
@yechan-kim yechan-kim self-assigned this Mar 5, 2025
@yechan-kim yechan-kim linked an issue Mar 5, 2025 that may be closed by this pull request
1 task
@github-actions
Copy link

github-actions bot commented Mar 5, 2025

Test Results

67 tests   67 ✅  2s ⏱️
31 suites   0 💤
31 files     0 ❌

Results for commit 868976f.

Copy link
Member

@1winhyun 1winhyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

수고하셨습니다!!

@yechan-kim yechan-kim merged commit 6911ae3 into main Mar 5, 2025
2 checks passed
@yechan-kim yechan-kim deleted the bug/#47 branch March 5, 2025 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug 버그 리포트 ♻️ refactor 코드 리팩토링

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🐛 S3 버킷 한글 파일명 처리 오류 수정

3 participants