输入类型=“文件"在科尔多瓦不起作用 [英] input type="file" does not work in cordova

查看:42
本文介绍了输入类型=“文件"在科尔多瓦不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个基于cordova的应用程序,无法使用HTML File标签使文件浏览器在android(SDK-23)上启动

I have a cordova based app and cannot get the file browser to launch on android (SDK-23) with HTML File tag

 <input type="file" accept=".doc,.docx,.rdf,.txt,.pdf,.odt" 
                    onchange="angular.element(this).scope().upload(this)">

当我选择链接时什么也没发生.

Nothing happens when I select the link.

请问您如何解决此问题的建议

Can you please give some suggestion on how to fix this issue

感谢您的帮助

推荐答案

<输入类型="file"> 在Cordova中不起作用.您需要使用文件插件.

<input type="file"> will not work in Cordova. You need to use the File Plugin.

这篇关于输入类型=“文件"在科尔多瓦不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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