We are attempting to create a file download system that will limit the user
to two simultaneous file transfers. We have a project where we have a file
browser web page in the web site that reads from a database and when the
user wishes to download a file they click the icon and we direct them to our
ftp site with a redirection to a link like so:
ftp://ftp.oursite.com/filename.zip . The files are fairly large 6-25megs
each so we didn't want to burden the CF engine sending them inline with
<cfcontent>. We are using CF 5.x and Serv-U 4.x as the FTP server.
We have bandwidth limiting on the FTP server so when a user opens multiple
download sessions the transfer rates drop. We are trying to write either a
server side (CF) or client side (_javascript_) script to detect that they are
already downloading two files and when one of the files finishes the third
file they queued will start.
Within CF I can determine when a download starts but can't find a way to
determine when it is actually finished. I was wondering of anyone knows of a
way to get the file completion status from Serv-U maybe with a plugin or
add-on utility, short of parsing the logs?
Alternately being a _javascript_ novice I am unsure if a client slide solution
can be written where the _javascript_ in the browser detects the two open
download windows and prevents them downloading another until one of the
windows is finished. It doesn't have to be foolproof to the advanced users
like a server side solution would be. It just needs to be functional for
most users.
Any assistance is greatly appreciated.
Best Regards,
Dennis Powers
UXB Internet- A Website Design and Hosting Company
690 Wolcott Road - P.O. Box 6028
Wolcott, CT 06716 tel: (203)879-2844
http://www.uxbinternet.com
http://dennis.uxb.net
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

