[英]HTML Input file type using only Document option on Android/ios devices
I am using the following tag to upload an image from the user device to the server: 我正在使用以下标记将图像从用户设备上传到服务器:
<input type="file" accept="image/*;” />
When I click on the input I am getting two options: Camera and Document. 当我单击输入时,我得到两个选项:“相机”和“文档”。 Is there a way to show only the Document option?
有没有办法只显示“文档”选项?
You have 2 little problems here : 您在这里有2个小问题:
first, your last quote i incorrect, change it to "
(instead of ”
) 首先,您的最后一个报价我不正确,将其更改为
"
(而不是”
)
second, you shouldn't have a ;
其次,您不应该使用
;
in your accept
, remove it. 在您
accept
,将其删除。
<input type="file" accept="image/*" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.