locked
Can it auto download files and upload files to and from client side computer from server pages(aspx)? RRS feed

  • Question

  • User1906506808 posted
    P.S. I am using C# project. In case ,There are 4 xml files in my server computer. My pages are <http://www.abc.com/upload.aspx> and <http://www.abc.com/download.aspx> on server if my server is <http://www.abc.com>. They are used for uploading and downloading process. Question 1 : Can I copy that 4 xml files to the specified folder (eg. C:\XML\ ) on client computer by clicking a button "Download" in the page , <http://www.abc.com/download.aspx>?, which means that people no need to click "save as" to the download these 4 xml files. Question 2 : Can I get 4 xml files from the specified folder (eg. C:\XML\ ) on client computer and upload it to the server computer of specified folder by clicking a button "Upload" in the page , <http://www.abc.com/upload.aspx>?, which means that people no need to choose files that needed to be uploaded as there are so specifed folder at client computer. Question 3 : Can it upload to PDA from server via client computer and via ActiveSync? Thx all , I would be greteful if someone can solve my problem. Thx ~~~~
    Wednesday, March 10, 2004 11:16 AM

All replies

  • User-1391363652 posted
    Q1. To store something on the client's computer you'd have to use VBScript/JScript. Any antivirus will throw a red flag if you do it. Chances are you won't have permissions to access the client's file system. Also, I think IE will display an xml as a page instead of popping up a download dialog box.
    Wednesday, March 10, 2004 2:17 PM
  • User-150667735 posted
    Q1 & Q2: Not possible using standard html. You cannot force download to specific folders, and you cannot force upload of specific files. Downloads must be saved by users, uploads must be chosen by users. When thinking about the security aspect, this makes perfect sense. Your only options are to go for a signed java applet or an activex control. BR, Rasmus
    Thursday, March 11, 2004 4:24 PM
  • User-150667735 posted
    Another possibility is to embed a .net control on a page, and execute it client-side. But this requires .net to be installed on all clients...
    Saturday, April 3, 2004 4:56 AM