0 Replies Latest reply on Mar 19, 2007 11:08 AM by Ashburton

    Resumable file downloads

      I recently set up a page that will allow users to download a free software applications from our site provided that they fill in the form of requested information with a valid email address. The page emails them a code that they then input and is verified against the one stored with their information. When the go to download the file I'm using CFHeader and CFContent tags to serve up the file but I have had a couple of clients report that the connection gets dropped for them and they have to start the download over again.

      I'm thinking that this one particular client is on dial-up. The reason I began using this method was that people were just entering bogus information into the forms and then other were linking directly to the file. A few people doing this using download managers were effectively bringing the server to a halt in something similar to a DOS attack.

      Is there something that I'm leaving out to make the download of the file resumable? I'm running Apache 2.0, ColdFusion MX 6.1 running on WinXP SP2 (I know, I'm trying to get it upgraded)

      The button on the download page call a file (download.cfm) using the following code:
      <A HREF="javascript:openWin('download.cfm?fileName=#productInfo.fileName#&CVP=#URL.CVP#',0,0 ,0,0)"><img...
      This passes some variable including the file name and others for updating a database.

      The DOWNLOADS.cfm exectutes the following page with a script that opens up a file with the header and content tags and closes it after.
      <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
      <TITLE>CARIS Free Software Download</TITLE>

      JAVASCRIPT --->
      function closewin() {
      opener.location.href = 'begin.cfm?fileSelection=#URL.fileName#&CVP=#URL.CVP#';

      <BODY onLoad="javascript:closewin();">

      The BEGIN.cfm updates the database and runs this:
      <CFHEADER NAME="Content-Disposition" VALUE="inline; filename=#URL.fileSelection#">

      The only thing I can think is that my MIME TYPE is wrong in CFContent. The files are just run-of-the-mill .exe install files.

      Any advice would be greatly appreciated.