0👍
Remove this header 'Content-Type': 'multipart/form-data'
,
also here is how you should use formData according to MDN
const formData = new FormData();
formData.append("imageName",image.current.files[0]);
Source:stackexchange.com
0👍
Remove this header 'Content-Type': 'multipart/form-data'
,
also here is how you should use formData according to MDN
const formData = new FormData();
formData.append("imageName",image.current.files[0]);