I'm trying to send a post request to an external api where one of the parameters needs to be of 'multipart/form-data' encoding, specifically with type image/jpeg. In php this works with CURLFile
new CURLFile($file, 'image/jpeg');
Is there an equivalent to this in Node JS?