0

I want to send text data as well as image file from HTML to Node JS. Please help me.

2
  • 2
    Please post your code here Commented Dec 2, 2018 at 11:40
  • You might wanna google this term AJAX Commented Dec 2, 2018 at 13:00

2 Answers 2

1

Just send FormData to server. And in node use multipart-parser middleware to get form parameters. ( included in body-parser )

Sign up to request clarification or add additional context in comments.

Comments

0

You can use Multer for that. It will parse the files and form data for you.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.