Sunday 29 December 2019

How can i get POST requests from html form input file & text together?

I have a HTML form. This form has input type = "text" and input type="file" elements. Like this :
But if you want to post a file with html form , you should add this attribute to your formenctype="multipart/form-data"But if i add this , i can not get text and other fields wih body-parserSo how can i get them together ? get text field and upload an image with html form in node side

Submitted December 29, 2019 at 08:44AM by ahmetbcakici

No comments:

Post a Comment