parsePromise = file => {
  return new Promise((onComplete, onError) => {
    loadCsvFileWithoutWorker(file.originFileObj || file, onComplete);
  });
}
a promise wraper over the loadCsvFileWithoutWorker function

@param {string} file: input file path
@return a promise contains the onComplete and onError callbacks.