解决Html5本地文件访问 [英] Work around for Html5 Local File Access

查看:255
本文介绍了解决Html5本地文件访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们目前正在考虑将企业Silverlight应用程序移植到html5.我们遇到的主要障碍是能够从用户的本地磁盘打开文件.目前,他们拥有一个文档库,该文档库仅链接到其计算机上的文件,可以从应用程序内打开它们并查看或打印出来.我读到的所有内容是,您只能使用html5文件api访问Web应用程序的本地沙箱.我们想从代码中加载这些文件.

We are currently looking at porting a enterprise silverlight application over to html5. The major roadblock that we have hit is the ability to open files from the user's local disk. Currently they have a document library which just links to files on their computer that they can open from within the app and view or print out. All that I read is that you can only access the local sandbox of the web app with the html5 file api's. We want to load these files from code.

有人知道任何解决方法吗?

Does anyone know of any workarounds to this?

谢谢

推荐答案

没有用户选择,html5无法访问本地文件.但是 FSO:FileSystemObject 适用于IE和MAYBE可以被认为是一种解决方法.但是仍然有一些要求可以满足.

There is no way for html5 to access local file without user selection. But FSO: FileSystemObject works for IE and MAYBE could be regarded as a work around. But still there are some requirements to meet.

这篇关于解决Html5本地文件访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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