title: TypeError: Cannot read property 'name' of null NodeJs
body: <p>I am learning and experimenting on <code>NodeJs</code>. I am using <code>request-promise</code> to call another api from <code>NodeJs</code>. I am using <code>form-data</code> to create a form and send it to another api.
  My snippet:</p>
  
  <pre><code>const requestPromise = require('request-promise');
  const FormData = require('form-data');
  ....
  
  var sendToAPI = async (fileObjBuffer, myId, timestamp) =&gt; {
  
      let formData = new FormData();
      formData.append('fileData', fileObjBuffer);
      formData.append('myId', myId);
      formData.append('fileName', timestamp);
  
      let options = {
          method: 'POST',
          uri: '&lt;URL&gt;',
          formData: formData,
          headers: {
              'Access-Control-Allow-Origin': '*',
              'enctype': 'multipart/form-data',
              'Content-Type': 'application/json',
              'Access-Control-Allow-Methods': 'GET,POST,OPTIONS,DELETE,PUT'
          },
          json: true
      };
      try {
          let apiResult = await requestPromise(options).promise();
          console.log('\n\napiResult: ', apiResult);
      } catch (error) {
          console.log('error in sending to api: ',error);
      } 
  }
  
  var fetchAllData = async () =&gt; {
      let query = 'select * from demo_db.demo_table;';
      let fileObject = "";
      var result;
      try {
          //cassandra query
          result = await client.execute(query, [], { prepare: true });
      } catch (error) {
          console.log('error in fetching data from Cassandra: ',error);
      }
      result.rows.forEach(resultObj =&gt; {
          fileObject = fileObject +resultObj['room_id'] +":"+resultObj['message_id']+":"+resultObj['original_message'] +":"+resultObj['send_date'] +":"+  resultObj['sender'] +"%";
      });
      let fileObjBuffer = new Buffer(fileObject);
      let myId = uuidv4();
      let timestamp = date.format(new Date(), 'YYYYMMMDDhhmmss', false);  
      sendToAPI(fileObjBuffer,myId,timestamp);
  }
  </code></pre>
  
  <p>My error:</p>
  
  <pre><code>error in sending to api:  TypeError: Cannot read property 'name' of null
  at FormData._getContentDisposition (/home/bhushan/NodeJS-Scheduler/node_modules/request/node_modules/form-data/lib/form_data.js:226:40)
  at FormData._multiPartHeader (/home/bhushan/NodeJS-Scheduler/node_modules/request/node_modules/form-data/lib/form_data.js:177:33)
  at FormData.append (/home/bhushan/NodeJS-Scheduler/node_modules/request/node_modules/form-data/lib/form_data.js:70:21)
  at appendFormValue (/home/bhushan/NodeJS-Scheduler/node_modules/request/request.js:326:21)
  at Request.init (/home/bhushan/NodeJS-Scheduler/node_modules/request/request.js:337:11)
  at Request.RP$initInterceptor [as init] (/home/bhushan/NodeJS-Scheduler/node_modules/request-promise-core/configure/request2.js:45:29)
  at new Request (/home/bhushan/NodeJS-Scheduler/node_modules/request/request.js:127:8)
  at request (/home/bhushan/NodeJS-Scheduler/node_modules/request/index.js:53:10)
  at sendToAPI (/home/bhushan/NodeJS-Scheduler/schedulerTest.js:52:25)
  at fetchAllData (/home/bhushan/NodeJS-Scheduler/schedulerTest.js:95:2)
  at process._tickCallback (internal/process/next_tick.js:68:7)
  </code></pre>
  
  <p>Please help me to solve this issue.</p>