[英]How do I allow iOS users to upload a document via an html input field on my website?
I have a contact form 7 plugin on my wordpress site, I want to allow users to upload a CV.我的 wordpress 网站上有一个 contact form 7 插件,我想允许用户上传简历。 On iOS devices though users are only given options to take a photo or upload a photo.
在 iOS 设备上,用户只能选择拍照或上传照片。 On android and any other device I'm able to choose file.
在 android 和任何其他我可以选择文件的设备上。
Is there any way to get around this iOS functionality?有什么办法可以绕过这个 iOS 功能吗?
This is not possible within Safari. 在Safari中这是不可能的。 Safari, and most iOS apps, operate within a sandbox, meaning they can't access other data and cannot read files outside their scope.
Safari和大多数iOS应用程序都在沙箱中运行,这意味着它们无法访问其他数据,也无法读取其范围之外的文件。 I think iOS only supports photo uploads.
我认为iOS仅支持照片上传。
Just place this html element on the site:只需将此 html 元素放在网站上:
This would only accept PDF format CVs but you can change the file requirement or get rid of it entirely.这只会接受 PDF 格式的简历,但您可以更改文件要求或完全摆脱它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.