-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(be): implement image upload (#1514)
* feat(be): implement image upload to S3 * docs(be): add upload image api docs * chore(be): modify image bucket baseurl * docs(be): add assert * chore(be): add alt property to return type of image-upload api * chore(infra): rename testcase to storage * feat(infra): add env for media bucket * chore(be): add sample image and modify return object - 샘플 이미지 추가 - src, alt 반환하던 것에서 src만 반환하는 것으로 변경 * Optimised images with calibre/image-actions * chore(be): add s3-media-provider to test code * chore(be): use relative path for sample image * chore(be): replace client with media-client * feat(be): add delete-image function * refactor: combine bucket setup scripts * fix(be): modify modify image size calculating logic - 5MB 초과 파일이 들어왔을 때도 계속해서 파일 사이즈를 계산하는 문제 수정 - 5MB 초과 시 파일 사이즈 계산 중지, 예외 던지도록 구현 * chore(be): modify filename to use uuid only * chore(be): remove duplicated import lines * chore(be): remove file extension * feat(be): add delete-image and improve image upload, delete logic * docs(be): add delete-image api docs * chore(be): parallelize deleting image logic * chore(be): parallelize image-delete api --------- Co-authored-by: k1g99 <idmatthew9546@gmail.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Jiyun Park <80032256+cho-to@users.noreply.github.com>
- Loading branch information
Showing
26 changed files
with
821 additions
and
405 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { Field, ObjectType } from '@nestjs/graphql' | ||
|
||
@ObjectType({ description: 'image' }) | ||
export class ImageSource { | ||
@Field(() => String) | ||
src: string | ||
} |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.