如何使用输入类型文件中的PhoneGap? [英] How to use input type file in phonegap?

查看:105
本文介绍了如何使用输入类型文件中的PhoneGap?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用PhoneGap的html文件的属性?这样我可以从我的Andr​​oid设备浏览任何txt文件,并把它上传到服务器??

How to use html file attribute in phonegap ? so that i can browse any .txt file from my android device and upload it to the server??

我读PhoneGap的文档文件传输的方法,但根据有可能将文件上传到服务器,只能通过url.But是否有可能在正常的方式,如:

I read file transfer method in phonegap documentation but according to that it is possible to upload files to the server only through url.But is it possible in normal way like :

<input type=file /><button>upload</button>

<一个href="http://stackoverflow.com/questions/16169652/input-type-file-accept-image-doesnt-work-in-phone-gap">input类型=&QUOT;文件&QUOT;接受=&QUOT;图像/ *&QUOT;在手机的差距也不行?我看着这个链接,但只对图像的说。

input type="file" accept="image/*" doesn't work in phone gap? i looked at this link but that says only for images .

但如何上传文本文件?

任何帮助??

任何人都可以回答这个问题?

Can anybody answer this?

推荐答案

我写了这个答案上的PhoneGap不能使用输入文件。它不支持。检查<一个解决方案href="http://stackoverflow.com/a/13862151/1853864">http://stackoverflow.com/a/13862151/1853864

I wrote this answer "You can't use input file on Phonegap. It's not supported.". Check the solution on http://stackoverflow.com/a/13862151/1853864

这篇关于如何使用输入类型文件中的PhoneGap?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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