Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.4.2 uploadFile 中的 progress 方法使用时报错 #11343

Closed
bluescurry opened this issue Feb 23, 2022 · 2 comments
Closed

3.4.2 uploadFile 中的 progress 方法使用时报错 #11343

bluescurry opened this issue Feb 23, 2022 · 2 comments
Labels
E-medium Helper Wanted - Medium F-react Framework - React P-1 High, patch T-h5 Target - 编译到 H5 V-3 Version - 3.x
Milestone

Comments

@bluescurry
Copy link
Contributor

相关平台

H5

浏览器版本: chrome
使用框架: React

复现步骤

const fetch = uploadFile({
      filePath: path,
      url: '...',
      name,
    });
    fetch.progress((pro) => {
      //...
    });

期望结果

通过 process 方法获取上传进度

实际结果

在 h5 中报错
安卓上报下面这个错
飞书20220223-135452
IOS上报下面这个错
image

环境信息

👽 Taro v3.4.2


  Taro CLI 3.4.2 environment info:
    System:
      OS: macOS 12.2
      Shell: 5.8 - /bin/zsh
    Binaries:
      Node: 16.13.0 - /usr/local/bin/node
      Yarn: 1.22.17 - /usr/local/bin/yarn
      npm: 8.1.1 - /usr/local/bin/npm
    npmPackages:
      @tarojs/cli: ^3.4.1 => 3.4.2
      @tarojs/components: ^3.4.1 => 3.4.2
      @tarojs/mini-runner: 3.4.1 => 3.4.2
      @tarojs/react: ^3.4.1 => 3.4.2
      @tarojs/runtime: ^3.4.1 => 3.4.2
      @tarojs/taro: ^3.4.1 => 3.4.2
      @tarojs/webpack-runner: 3.4.1 => 3.4.2
      babel-preset-taro: 3.4.1 => 3.4.2
      eslint-config-taro: 3.4.1 => 3.4.2
      react: ^17.0.1 => 17.0.2
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Feb 23, 2022
@github-actions
Copy link
Contributor

github-actions bot commented Feb 23, 2022

等待热心的小伙伴解决问题中..., 有一些相关的 issues 可能帮助到你!

Thank you so much!

@ZakaryCode ZakaryCode added E-medium Helper Wanted - Medium P-1 High, patch labels Feb 25, 2022
@taro-bot2 taro-bot2 bot modified the milestone: 3.4.3 Feb 25, 2022
@Chen-jj Chen-jj modified the milestones: 3.4.3, 3.4.4 Mar 7, 2022
@Chen-jj Chen-jj modified the milestones: 3.4.4, 3.4.5 Mar 28, 2022
@Chen-jj Chen-jj removed this from the 3.4.5 milestone Apr 12, 2022
@Chen-jj Chen-jj added this to the 3.4.6 milestone Apr 12, 2022
@Chen-jj Chen-jj modified the milestones: 3.4.7, 3.4.8 Apr 24, 2022
@Chen-jj Chen-jj modified the milestones: 3.4.8, 3.4.9 May 9, 2022
@ZakaryCode
Copy link
Contributor

可以确定版本,未能复现该问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E-medium Helper Wanted - Medium F-react Framework - React P-1 High, patch T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

3 participants