简体   繁体   English

如何允许 iOS 用户通过我网站上的 html 输入字段上传文档?

[英]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.

相关问题 如何允许我的网站用户上传媒体文件? - How can I allow users of my website to upload media files? 如何允许用户使用php和jquery从单个输入字段中选择多个文件? - How do I allow users to select multiple files out of a single input field using php and jquery? PHP如何允许用户为博客设计自定义html? - PHP how do I allow users to customize html for their blog design? 如何允许用户将文件上传到网站以便我可以接收它们? - How to allow users to upload files to the website so that I can receive them? 如何允许我的用户在PHP中自定义他们的仪表板 - How do I allow my users to customize their dashboards in PHP 如何允许用户使用我的REST API进行身份验证? - How do I allow users to authenticate with my REST API? 如何将远程位置的文件上传到我的本地主机网站? - How do I upload a file in a remote location to my localhost website? 开发允许用户将照片和视频从移动设备上传到我的网站的方法有哪些选择? - What are my options for developing a method to allow users to upload photos and video to my website from a mobile device 我如何设置我的PHP以输入用户IP - How do i set my php to input users IP 如何在我的用户存储在SQL数据库中的网站上记录每个用户的时间会话? - How do I log each users time session on a website where my users are stored in an SQL Database?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM