< T:inputFileUpload>不工作在iPad上 [英] <t:inputFileUpload> not work in ipad
问题描述
我使用JSF < T:inputFileUpload>
标记将文件上传到我的网站。它适用于所有浏览器的个人电脑,但是当我在 iPad
中测试时,它不起作用。它在 iOS 5
中显示为禁用。它在 iOS 6
中上传图片而不是文本文件或pdf或word或excel文件。
类似的情况?如何将iPad上的文档和电子表格上传到我的网站?
这个问题不是特定于JSF的。它基本上只是一个HTML代码生成器。它运行在网络服务器上,并产生一堆HTML发送到客户端(在你的情况下,iPad),然后在那里解释。 < t:inputFileUpload>
只是产生一个HTML < input type =file>
p>
该HTML元素反过来在基于Safari Mobile的浏览器中确实被禁用。 JSF看起来像一个魔术师,但它确实无法控制客户决定对检索到的HTML做什么。 。你需要寻找一个第三方客户端库使这个在Safari浏览器移动端
参见:
i use JSF <t:inputFileUpload>
tag to upload files to my site. It works properly in a PC with all browsers but when I test it in my iPad
it does not work. It shows as disabled in iOS 5
. It uploads images but not text files or pdf or word or excel files in iOS 6
.
Have you faced a similar situation? How can I upload documents and spreadsheets from an iPad onto my site?
This problem is not specific to JSF. It's basically just a HTML code generator. It runs on webserver and produces a bunch of HTML which get sent to the client (in your case, the iPad) and then interpreted over there. The <t:inputFileUpload>
just generates a HTML <input type="file">
.
That HTML element is in turn indeed disabled in Safari Mobile based browsers. JSF look like a magician, but it really can't control whatever the client decides to do with the retrieved HTML. You'd need to look for a 3rd party client side library which enables this in the Safari Mobile side.
See also:
- A html5 web app for mobile safari to upload images from the Photos.app?
- upload files via iPad
- HTML file browse not working in iPad
这篇关于< T:inputFileUpload>不工作在iPad上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!