浏览器应用程序和 本地文件系统访问

发布于 2024-07-09 03:50:15 字数 317 浏览 10 评论 0原文

我想通过支持管理本地文件和文件夹的功能来增强基于浏览器的 Web 应用程序。 例如,文件夹树结构应通过 HTTP(S) 在本地工作站和服务器之间同步。

我知道基于浏览器的应用程序中与安全相关的限制。 然而,有一些技术可以“解决”这些问题:

  • 签名的 Java 小程序(完全信任)
  • .NET Windows 窗体浏览器控件(不是开玩笑,这有效。只是配置太糟糕了)
  • ActiveX

我的问题是:你使用什么/建议,技术和实施实践? 关键要求是安装过程尽可能简单。

感谢您的意见!

I want to enhance my browser-based web application with functionality that enables management of local files and folders. E.g. folder tree structures should be synchronized between local workstation and server via HTTP(S).

I am aware of security-related limitations in browser-based applications. However, there are some techniques that "work around" these issues:

  • Signed Java applets (full trust)
  • .NET Windows Forms browser controls (no joke, that works. Just the configuration is horrible)
  • ActiveX

My question is: What do you use/suggest, both technology and implementation practice? Key requirement is that the installation process is as simple as possible.

Thanks for your opinions!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

ペ泪落弦音 2024-07-16 03:50:15

谷歌齿轮。

它允许您编写具有比普通浏览器更大的平台支持的 Javascript 应用程序,并且与本地文件访问、缓存和数据库“断开连接”。 如果/当连接时,它会同步到中央服务器。

适用于所有平台上的多种浏览器; 但仍处于剧烈的演变之中。

Google Gears.

it lets you write Javascript applications with a much bigger platform support than the usual browser, and go 'unconnected' with local file access, cache and DB. and if/when connected it syncs to the central server.

available for several browsers on all platforms; but still under heavy evolution.

廻憶裏菂餘溫 2024-07-16 03:50:15

Gears 和 Adob​​e Air 都要求用户在获得任何编程访问权限之前手动选择本地文件。 由于本地文件系统访问方面的安全考虑,非常有限,因此据我所知,没有机会使用任何基于 Web 的文件同步类型功能。 也许我对 Adob​​e Air 的看法是错误的,但齿轮绝对是这样。 但如果我错了请告诉我!

Both Gears and Adobe Air require the user to manually select a local file before you get any programmatic access. Very limited because of security considerations when it comes to local filesystem access, so no chance for any web based file sync type functionality there as far as I can see. Maybe I'm wrong about Adobe Air but this is definitely the case with gears. But If I'm wrong let me know!

睫毛上残留的泪 2024-07-16 03:50:15

Silverlight 4(仍处于测试版)允许文件系统访问:

“读取文件并将其写入用户的 MyDocuments、MyMusic、MyPictures 和 MyVideos 文件夹(或非 Windows 平台的同等文件夹),例如存储媒体文件和获取报告的本地副本”

http://www.silverlight.net/getstarted/silverlight-4/

Silverlight 4 (still in beta) allows file system access:

"Read and write files to the user’s MyDocuments, MyMusic, MyPictures and MyVideos folder (or equivalent for non-windows platforms) for example storage of media files and taking local copies of reports"

http://www.silverlight.net/getstarted/silverlight-4/

Hello爱情风 2024-07-16 03:50:15

绝对不是ActiveX。 花时间在过时的东西上是没有意义的。

Definitely not ActiveX. No sense spending time on something that out-of-date.

哭泣的笑容 2024-07-16 03:50:15

Adobe AIR(本质上是桌面版 Flash)是我们在上一份合同中考虑的,而不是 Java 小程序。 上次查了一下,虽然已经过去几个月了,AIR运行环境的安装还是很快很简单的

Adobe AIR (essentially, Flash for the Desktop), is something that we considered in my last contract, as opposed to Java applets. Last I checked, though it's been several months, the installation of the AIR runtime environment was fast and easy

荆棘i 2024-07-16 03:50:15

您最好的选择可能是编写一个与您的 Web 应用程序交互的自定义​​应用程序。 例如,Dropbox 可让您通过使用监视启用 Dropbox 的文件夹的后台应用程序来跨计算机同步文件。 它还允许您通过网络浏览器在线查看 Dropbox 文件。 然后,Dropbox Web 应用程序允许您删除/移动/复制本地文件系统中回显的文件。

Your best bet might be to write a custom application that interacts with your web application. For example, Dropbox lets you synchronize files across computers by use of a background application that watches a Dropbox-enabled folder. It also lets you view your Dropbox files online through a web browser. The Dropbox web application then allows you to delete/move/copy files which is echoed in your local filesystem.

天煞孤星 2024-07-16 03:50:15

在 Google Wave 演示中...

http://www.youtube.com /watch?v=v_UyVmITiYQ&fmt=18

...15:30 中,一组 img 文件从文件系统拖放到浏览器中。 该功能归功于 Google Gears。 这似乎与 Daniel OCallaghan 和官方文档建议的可能有点不同。

有人知道 Google Gear 和本地文件系统实际上可以做什么吗?

In the demo of Google Wave...

http://www.youtube.com/watch?v=v_UyVmITiYQ&fmt=18

...at 15:30 in, a group of img files are drag-and-dropped from the file system to the browser. The functionality is attributed to Google Gears. This seems a bit different from what Daniel OCallaghan and the official documentation suggest is possible.

Anybody know what's actually possible w/ Google Gear and the local file system?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文