code: function uploadExample() {
    return upload('./files/small.mp4', 0, {
      onBegin: () => console.log('begin'),
      onProgress: ({ loaded, total }) => console.log(loaded, total, (loaded / total * 100).toFixed(2) + '%')
    }).then((result) => {
      console.log("Done");
      return result;
    });
  }
docs: proxyUploadExample(); uploadExample();