469,616 Members | 1,823 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,616 developers. It's quick & easy.

download list of files

Hello all,

I am a desktop programmer getting my feet wet on the web. I am trying to
build a .net website that will keep a set of local files synchronized with
a master set on the web.

Using a cookie I can keep track of when the user last synced and build a
file list in my asp.net code that displays which files need downloading.

Next I want to put a button on the page that will download all of the files
sequentially and put them in the appropriate local directories. I do NOT
want a save dialog opening for each file, as there may be dozens of files
at a time. The first time a user connects there could be 500 files!

Can this be done using javascript alone, or do I need to create some sort
of ActiveX object?

Thanks for any advice and direction...
Marc Pelletier
Jul 23 '05 #1
1 1816
Marc Pelletier wrote:
Hello all,

I am a desktop programmer getting my feet wet on the web. I am trying to
build a .net website that will keep a set of local files synchronized with
a master set on the web.

Using a cookie I can keep track of when the user last synced and build a
file list in my asp.net code that displays which files need downloading.
Yes, you can but it will be very unreliable. How do you deal with
situations where the user deletes their cookie file? How do you
guarantee that because the user 'synced' at a particular time that
they actually downloaded and installed the files, or that the files
are still on their system?

Next I want to put a button on the page that will download all of the files
sequentially and put them in the appropriate local directories. I do NOT
want a save dialog opening for each file, as there may be dozens of files
at a time. The first time a user connects there could be 500 files!
You have no control over where the user puts the files, or whether
the file 'Save As' dialogue appears. You could use a self-extracting
archive that knows where to put the files, but that would likely be
platform-specific and so may suit an intranet but certainly not a
publicly accessible web site.
Can this be done using javascript alone,
No.
or do I need to create some sort
of ActiveX object?
You need something, it need not be ActiveX. This situation is
usually handled by the user downloading an installer that checks
their system, connects to the server and downloads what it thinks
are the required files, then puts them where they need to be.

There are ftp clients that do this sort of stuff, but the security
implications are horrendous.

Thanks for any advice and direction...
Marc Pelletier

--
Rob
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

13 posts views Thread by dan roberts | last post: by
reply views Thread by Anne Snow | last post: by
3 posts views Thread by Skwish | last post: by
2 posts views Thread by Ivo Tcholakov | last post: by
2 posts views Thread by RJN | last post: by
1 post views Thread by david | last post: by
1 post views Thread by rdemyan via AccessMonster.com | last post: by
1 post views Thread by Juerg Beck | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.