离子HTML输入无法为Android上的图像选择相机

时间:2019-10-24 22:41:02

标签: android html ionic-framework camera

我正在Ionic应用程序中使用以下输入来从用户那里获取图像或视频

<input type="file" multiple #imageFileInput accept="image/*" (change)="imageFiles($event)" style="display:none;" />

但是,它没有给他们选择相机的权限,因为chrome spec suggests当我添加capture属性时,它仅会打开相机,并且没有选择文件的选项。如何设置它,以便用户可以从图库中选择相机或图像?

0 个答案:

没有答案