A
A
a2017-03-31 20:34:58
npm
a, 2017-03-31 20:34:58

How to send a file as a POST request using the npm request module?

I don't have much experience with nodejs, so this question came up.
There is a .jpg file, you need to send it to the given URL as a post request with the header: content-type: image/jpeg
Please provide an example code

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question