AWS multer-s3 오류 TypeError: this.client.send is not a function
TypeError: this.client.send is not a function 이 에러는 AWS S3 에 접근할 수 없다는 에러였다. aws 에 퍼플릭 엑세스로 설정을 바꾼뒤 해결되었다. 이후 다른 문제가 발생했는데, req.file 을 불렀을때 값이 비어있었고, 당연히 req.file.location 도 작동하지 않았다. 아래는 해당 코드이다. // awsMulterModules.js const multer = require("multer"); const AWS = require("aws-sdk"); const multerS3 = require("multer-s3"); const path = require("path"); require("dotenv").config(); AWS.config.upda..
2023.07.21