AWS/S3
-
Presigned URL을 이용하여 이미지 업로드할 때 용량 제한하기AWS/S3 2022. 4. 20. 17:41
백엔드(NestJS) import AWS from 'aws-sdk'; import { BadRequestException, Inject, Injectable } from '@nestjs/common'; import { ConfigType } from '@nestjs/config'; import { GetPreSignedUrlQueryDTO, GetPreSignedUrlResDTO } from '@dtos'; import AwsConfig from '@config/variables/aws.config'; @Injectable() export class UploadService { constructor( @Inject(AwsConfig.KEY) private readonly awsConfig: ConfigT..