Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question