Forum Moderators: open

Message Too Old, No Replies

Using ASP to access the users File System

Using ASP to access the users File System

         

OutburstDigitalMedia

1:17 am on Oct 4, 2004 (gmt 0)

10+ Year Member



Im trying to download a buch of files in one go to a users computer by clicking one link... Can i access the local file system by using FSO?

If not can anyone think of a way to maybe do this... i want the person to click one link, and have everything downloaded using a database to collect the files etc...

I dont know if this is making sense. but any help would be appreciated

Thanks

TheNige

9:31 pm on Oct 4, 2004 (gmt 0)

10+ Year Member



No, you can't access their local filesystem...remember you are running code on the webserver. You would have to create an ActiveX control to run on your page which would allow this.

Another alternative would be to dynamically zip the requested files into 1 archive and have the user download that.

OutburstDigitalMedia

2:36 am on Oct 5, 2004 (gmt 0)

10+ Year Member



Ive been reading up and it seems that making a cab dynamically with asp.net was phased out about the second beta release, is this correct?

TheNige

9:12 pm on Oct 5, 2004 (gmt 0)

10+ Year Member



phased out how? I can't think of any other way to get multiple files to the client with only 1 click of a button. You can't access the client file system throught regular ASP/ASP.Net code (because it is running on the Web Server).

Something has to be running on the client side (ActiveX control) or you need to package all of the files on the server side and then have the link point to the package, such as a Zip file for them to download.

TheNige

9:15 pm on Oct 5, 2004 (gmt 0)

10+ Year Member



Or, if you want, just loop through the files with jscript (file locations need to be made available to the jscript code) so that they all get sent individually to the client by opening a new window to each file. The client then has to open/save each file themselves.