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

van-uploader accept的值为media的情况下 在小程序windows版本上 弹不出文件选择框 #4942

Closed
pinker1983 opened this issue May 24, 2022 · 2 comments

Comments

@pinker1983
Copy link

你好,请使用下面的链接创建 issue 以帮助我们更快的排查问题,不规范的 issue 会被关闭,感谢配合。

http://vant-contrib.gitee.io/vant-issue-generater?repo=VantWeapp

@pandamo
Copy link

pandamo commented Aug 10, 2022

自行修改吧,路径: \miniprogram_npm@vant\weapp\uploader\utils.js
72行, wx.chooseMedia传入参数的sourceType应该为mediaType

参考微信开发文档:https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseMedia.html

@landluck
Copy link
Contributor

v1.10.8 版本增加 media-type 属性,可以使用解决这个问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants