const response1 = await fetch(imgSrc);
const blob = await response1.blob();
const file = new File([blob], 'testImg');
const response2 = await fetch('http://localhost:8080/upload', {
method: 'POST',
headers: {
'Content-Type': '?' // 여기
},
body: file
});
const blob = await response1.blob();
const file = new File([blob], 'testImg');
const response2 = await fetch('http://localhost:8080/upload', {
method: 'POST',
headers: {
'Content-Type': '?' // 여기
},
body: file
});
Blob을 래핑한 파일 클래스 객체인 데 뭘로 하나요 File 클래스라 서칭하기 힘드네오
png니까 image/png 그냥 쓰면 되나오?
멀티파트 폼 비극-자살예정자
ㅋㅋ 왤케 잘 아심 ㅋㅋㅋㅋ?
multipart/form-data
그냥 폼으로 래핑한판 더해야할 판 ㅋ