How to upload image using javascript fetch api and express multer
问题 I am working in a reactjs application where i have to upload user image. I am getting file on onChange event of file input and passing it parent component and parent component will make a post request using the data Server side I am using express and multer for file upload and client side using fetch api to upload the image. Thanks in advance :) 回答1: I figure it out To upload an file/image to multer we need a form enctype="multipart/form-data" without that it wont work with multer I am