简体   繁体   English

Vuejs PWA 输入类型文件不显示下拉选项

[英]Vuejs PWA input type file not showing dropdown options

I've developed Vuejs PWA.我开发了 Vuejs PWA。 The app allows users to upload images from their phones.该应用程序允许用户从他们的手机上传图像。 It usually works fine.它通常工作正常。 The user is able to select from the options - take a photo or upload from the camera roll.用户可以从选项中选择 select - 拍照或从相机胶卷上传。 When the user downloads the app to the homescreen the image upload sometimes didn't ask to select from those options but the camera directly opens.当用户将应用程序下载到主屏幕时,有时不会从这些选项中向 select 询问图像上传,但相机会直接打开。 This happens both on IOS and Android.这发生在 IOS 和 Android 上。 Is there a way to force the input field to always show dropdown options?有没有办法强制输入字段始终显示下拉选项? Below is the code that I am using for the input file.下面是我用于输入文件的代码。

<input type="file" multiple accept="image/png,image/jpeg,image/JPEG,image/jpg"/>

I want this dropdown to open when I click on the input file.我希望在单击输入文件时打开此下拉菜单。

在此处输入图像描述

 <input type="file" multiple accept="image/*"/>

Try this, I have used in my PWA app its never make issue and accept all formats.试试这个,我在我的 PWA 应用程序中使用它从不出现问题并接受所有格式。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM