multer(3)
-
6 주차 ( + 협업을 통해 느낀점 )[ WIL ]
이번주에 알게된 것 CI/CD : https://muyeon95.tistory.com/222 CI/CD CI/CD 란? CI/CD (Contunuous Integration/Continuous Delivery) 는 애플리케이션 단계를 자동화하여 애플리케이션을 더욱 짧은 주기로 고객에게 제공하는 방법 기본적인 개념은 지속적인 통합, 지속적인 서비스 muyeon95.tistory.com https://overjoyed-sailfish-366.notion.site/CI-CD-db415d8512e94125930fe71cb0b73091?pvs=4 CI/CD 참조 링크 overjoyed-sailfish-366.notion.site Github Action : https://muyeon95.tistory.com/22..
2023.07.23 -
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 -
multer
inpa Dev 님의 블로그를 참고하여 적은 글입니다. multer 란? 이미지나 동영상 등을 비롯한 여러가지 파일들을 멀티파트 형식으로 업로드 할 때 사용하는 미들웨어 이다. 멀트파트 형식이란 enctype 이 multipart/form-data 인 폼을 통해 업로드하는 데이터의 형식을 의미한다. multer 문법 storage 는 저장할 공간에 대한 정보, 디스크나 메모리 저장 기능 diskStorage 는 하드디스크에 업로드 파일을 저장한다는 것 destination 은 저장할 경로 filename 은 저장할 파일명(파일명 + 날짜 + 확장자 형식) limits 는 파일 개수나 파일 사이즈를 제한할 수 있다. const multer = require('multer'); const fs = requi..
2023.07.20