html input type = file-从iCloud选择文件 [英] html input type=file -- Select a file from iCloud

查看:353
本文介绍了html input type = file-从iCloud选择文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发具有嵌入式文本编辑器的基于Cordova/PhoneGap的应用程序.要访问选定的文件,我让用户使用html <input type=file>元素浏览移动设备:

I'm developing a Cordova / PhoneGap-based application that has an embedded text editor. To access selected files, I'm having the user browse the mobile device by using the html <input type=file> element:

<div class="control-row">
  <label for="selFile" class="topcoat-button">{{t 'view.lblSelect'}}</label>
  <input type="file" value="" id="selFile" multiple>
</div>

但是,在iOS上,单击输入元素会弹出照片,而不是允许我选择iCloud文档.有没有办法从Cordova/PhoneGap中选择iCloud文档?

On iOS, however, clicking on the input element brings up Photos instead of allowing me to pick iCloud documents. Is there a way to select iCloud documents from Cordova / PhoneGap?

推荐答案

现在是2017年8月即使经过一番研究,我也发现了同样的问题,但我找到了确切的解决方案.转到Xcode->选择项目->功能-> iCloud并启用它.现在它将起作用.

It's 2017 August Even I was facing the same problem after some research I found an exact solution for this. Go to Xcode ->Select your project -> Capabilities -> iCloud and enable it. Now it will work.

这篇关于html input type = file-从iCloud选择文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆