title: How to set Content-Type for the multipart/form-data in node.js request
body: <p>Here is my request which is able to find the service but on the logs i am getting error saying content-type should be multipart/form-data, how should i set the content type in the following request.</p>
  
  <pre><code>    var fs = require('fs');
  var request = require('request');
  
  
  var formData = {
    // Pass a simple key-value pair 
    deviceId: '2612',
    // Pass data via Buffers 
    checksum: '132654798',
    fileSize: '60',
    fileType: 'configuration',
    compressionType: 'Z',
    // Pass data via Streams 
    file: fs.createReadStream('C:/Ruby193/Mybugs.txt'),
  };
  
  
  
  request.post({url:'https://transfer-upload-v1/file', formData: formData,}, function optionalCallback(err, httpResponse, body) {
    if (err) {
      return console.error('upload failed:', err);
    }
    console.log('Upload successful!  Server responded with:', body);
  });
  </code></pre>