写到从网页的本地磁盘 [英] Write to local disk from web page

查看:114
本文介绍了写到从网页的本地磁盘的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个Silverlight控件,允许多文件下载。目前,我试图让我的脑海里围绕着浏览器的权限模型。

I'm working on a Silverlight control that will allow multi-file downloading. At the moment I'm trying to get my mind around the permission model of the browser.

让我们说,在网页上,用户输入一个本地文件夹:在文本框中(C \\ TEMP)。然后用户点击一个按钮。

Let's say, on a web page, a user enters a local folder (c:\temp) in a text box. The user then clicks a button.

是否有可能在JavaScript或Silverlight中,写入文件(存储在服务器上)到该文件夹​​的集合,用户的硬盘上?

Is it possible in JavaScript or Silverlight, to write a collection of files (that are stored on the server) to that folder on the user's drive?

推荐答案

从Javascript - NO。这将是太简单了一些人渣到您的电脑上安装了病毒,如果这是可能的。

From Javascript - NO. It would be way too easy from some scumbag to install a virus on your PC if that were possible.

Silverlight的我不知道,但我会假设写入到用户的硬盘驱动器将是非常有限的,严格的控制。

Silverlight I don't know about, but I would assume writing to the users hard drive would be very limited and tightly controlled.

这篇关于写到从网页的本地磁盘的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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