Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S3 Presigned URL 생성 시 컨텐츠 타입 검증 추가 #49

Merged
merged 1 commit into from
Sep 6, 2024

Conversation

Aram-su
Copy link
Contributor

@Aram-su Aram-su commented Sep 6, 2024

개요

  • Presigned URL 생성 시 이미지가 아닌 컨텐츠 타입에 대한 예외 발생
  • Presigned URL 을 통해 이미지 파일만 업로드할 수 있도록 함

PR 유형

어떤 변경 사항이 있나요?

  • 새로운 기능 추가

PR Checklist

PR이 다음 요구 사항을 충족하는지 확인하세요.

  • 커밋 메시지 컨벤션에 맞게 작성했습니다. Commit message convention 참고 (Ctrl + 클릭하세요.)
  • 변경 사항에 대한 테스트를 했습니다.(버그 수정/기능에 대한 테스트)

1. AlbumPhotoUploadUrlService 기능 추가
 - validateContentTypes() 메소드 추가
  - contentType에 대해 검증
  - 이미지가 아닌 컨텐츠 타입에 대해 예외 발생

2. InvalidContentTypeException 예외 구현
 - 유효하지 않은 컨텐츠 타입에 대한 예외 구현
 - 상태코드 415 Unsupported Media Type 설정

- Presigned URL을 통해 이미지 파일만 업로드할 수 있도록 함
Copy link
Contributor

@liljoon liljoon left a comment

Choose a reason for hiding this comment

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

image content-type 검증한 것 확인했습니다.

@Aram-su Aram-su merged commit 5ac01cb into dev Sep 6, 2024
1 check passed
@Aram-su Aram-su deleted the refactor/album/presignedurl branch September 6, 2024 08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants