이미지 여러개는
const formData = new FormData();
for (const image of imageFile) {
formData.append('images', image as any);
}
이렇게 하는거아닐까용..?
서버쪽에서 콘솔찍어보면,req.file [ '[object Object]', '[object Object]' ] 이렇게나옵니다.
프론트쪽에서 콘솔찍어도 object Object 이렇게나오구요..
imageFile 은
lastModified: 1689957741864
name: "1.jpg"
size: 65998
type: "image/jpeg"
webkitRelativePath: null
[[Prototype]]: Object
이런 내용을 갖고있습니다.
imageFile이 객체라서 object Object로 나오는건가요?
근데 인터넷 뒤져서 블로그나 이런데에서 다른사람이 구현하고 콘솔찍은거 보면 object Object로 안나오고,
객체 데이터 그대로 나오더라구요..