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

image-picker 组件选择图片的时候,只能选择图库中的图片,原因是 input中的accept="image/jpg,image/jpeg,image/png,image/gif",将其改为accept="image/*" 即可,或者这里可以增加一个api。谢谢~ #2017

Closed
uames opened this issue Oct 30, 2017 · 6 comments · Fixed by #2134
Assignees
Labels

Comments

@uames
Copy link

uames commented Oct 30, 2017

Version

2.0.1

Environment

ununtu下chrome

Reproduction link

http://www.baidu.com

Steps to reproduce

使用image-picker组件即可重现

What is expected?

有一个api可以覆盖accept的值

What is actually happening?

accept值为image/jpg,image/jpeg,image/png,image/gif且无法覆盖

@ant-design-bot
Copy link

It will be better to write your issue/comment in English, so more people can understand you.
And this means that more people can help you or benefit from your issue/comment.
See: ant-design/ant-design#4897

@paranoidjk
Copy link
Contributor

请确认用移动设备浏览器测试

@silentcloud
Copy link
Contributor

用移动端设备测试,如果移动端测试还是有问题,请reopen issue

@ant-design-bot
Copy link

Hello @uames. Please provide a re-producible demo: https://codepen.io/pen?template=LWpaKe&editors=0010

@paranoidjk
Copy link
Contributor

paranoidjk commented Nov 27, 2017

本周处理 ImagePicker 的一些待确认问题,包括选多张的和选非图库的

  • ImagePicker这个组件支持一下在选取多张吗

multiple="multiple" 支付宝客户端可不加,safari 需要加

https://github.com/ant-design/ant-design-mobile/blob/master/components/image-picker/index.tsx#L113 代码不要写死一张

@ghost ghost added the In Progress label Dec 1, 2017
zhang740 pushed a commit that referenced this issue Dec 1, 2017
* feat(ImagePicker): support multiple. close #2017
lixiaoyang1992 pushed a commit to lixiaoyang1992/ant-design-mobile that referenced this issue Apr 26, 2018
@lzj17600278322
Copy link

请问我想 在公众内选择上传图片的时候调出相机和相册应该怎么做呢

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

Successfully merging a pull request may close this issue.

6 participants