Burn to a local disk from a web page

I am working on a Silverlight control that will allow multi-user loading. I'm currently trying to understand the browser permission model.

Say, on a web page, a user enters a local folder (c: \ temp) in a text box. Then the user clicks the button.

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

+3
source share
11 answers

From Javascript - NO. With some scumbags, it would be too easy to install a virus on your computer if it were possible.

Silverlight , , .

+12

: .

Javascript MSIE ( ActiveX FileSystemObject), Firefox ( nsIFileOutputStream). , .

+5

, , .

- , , .

, , - ZIP- , , .

+4

Scripting.FileSystemObject . IE , , , .

+4

Google Gears .

http://gears.google.com/

, , , . , .zip , .

+2

, , Silverlight JavaScript , . zip- , zip-.

+1

ActiveX Java-. . , .

Javascript . . , - - , :

  • -.
  • .
  • , , , , .

, -, Javascript.

+1

, , . , , - ( ) - , .

, , "FileSaveDialog", , , . , , . Silverlight 1 .

0

This does not directly answer the question, but Adobe Flex 4 allows you to do this using the FileReference class.

0
source

Silverlight 4 OOB allows you to access the user document directory.

0
source

All Articles