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

Taro.chooseImage H5 缺少 originalFileObj 字段 #8032

Closed
deng-yc opened this issue Nov 12, 2020 · 6 comments
Closed

Taro.chooseImage H5 缺少 originalFileObj 字段 #8032

deng-yc opened this issue Nov 12, 2020 · 6 comments
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x

Comments

@deng-yc
Copy link

deng-yc commented Nov 12, 2020

相关平台

H5

浏览器版本: Chrome 86
使用框架: React

复现步骤

图片上传 选择完图片,tempFiles 中缺少 originalFileObj

期望结果

包含originalFileObj

实际结果

没有originalFileObj

环境信息

  Taro CLI 3.0.16 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 14.2.0
      Yarn: 1.22.10
      npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD
@taro-bot2 taro-bot2 bot added F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x labels Nov 12, 2020
@RainWangjie
Copy link

遇到同样的问题。
我是通过file.url转blob类型解决的。
const blob = await fetch(file.url).then((r) => r.blob());

@alvc666
Copy link

alvc666 commented Dec 12, 2020

同样遇到问题
以前已经修复过的 然而新版本没有合进去
fe346ef?branch=fe346efc9b06926371ab7065f5e4e07839b25293&diff=unified

@MengQingJunzz
Copy link

请问这个fetch是什么方法 @RainWangjie

@RainWangjie
Copy link

请问这个fetch是什么方法 @RainWangjie

😓 看官方解释吧
fetch

@dolphin0618
Copy link

chooseVideo也没有

@ZakaryCode
Copy link
Contributor

更新版本哦~

@ZakaryCode ZakaryCode moved this to Done in H5 Apr 10, 2023
@ZakaryCode ZakaryCode added this to H5 Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-h5 Target - 编译到 H5 V-3 Version - 3.x
Projects
Archived in project
Development

No branches or pull requests

6 participants