Open karandutt01 opened 5 years ago
@LinusU I am using multer but it is giving me req.file undefined everytime. Please help me out what am I doing wrong?
The method
attribute here should probably be POST
, GET
requests can't have a request body afaik...
Important to note also that with that form, it will redirect you to the url. I got this to work for me where it did indeed upload the file with a GET request. But then when the page was reloaded after submitting, req.file
was undefined because I was just loading the page, not submitting a form to it.