Connecting Tech Pros Worldwide Forums | Help | Site Map

How to tell if a file download completed?

Dan D
Guest
 
Posts: n/a
#1: Oct 18 '06
I have a large install file (an exe) on my web Apache server that people
download and install from. Looking at my log files, I see a lot of
people downloading it, but no way to tell for sure if they completed the
download or cancelled out before it completed. Are there any known
methods that would allow the web server to send the file and detect a
completion or cancellation?

Or perhaps a javascript method or html request trick that would allow a
second file (say an image) to be requested if the first file downloads
to completion but not if cancelled?

Any help would be greatly appreciated.
Thanks,
Dan

Kevin Darling
Guest
 
Posts: n/a
#2: Oct 18 '06

re: How to tell if a file download completed?



Dan D wrote:
Quote:
I have a large install file (an exe) on my web Apache server that people
download and install from. Looking at my log files, I see a lot of
people downloading it, but no way to tell for sure if they completed the
download or cancelled out before it completed. Are there any known
methods that would allow the web server to send the file and detect a
completion or cancellation?
This probably won't help you, especially if you can't add to the
installation file, but our situation was more under my control:

We had a package that had to be downloaded and installed. What we did
was include a DLL that we could check for in our login page. If we saw
the OBJECT correctly, then we didn't go to the download page. If we
didn't see the OBJECT then we asked the person to run the install file,
then click a button to try login again. They basically could not get
in until we saw the DLL we had installed.

If you can include an ActiveXObject like this in the installation, you
could check for it later.

Just a thought,
Kev

RobG
Guest
 
Posts: n/a
#3: Oct 19 '06

re: How to tell if a file download completed?



Dan D wrote:
Quote:
I have a large install file (an exe) on my web Apache server that people
download and install from. Looking at my log files, I see a lot of
people downloading it, but no way to tell for sure if they completed the
download or cancelled out before it completed. Are there any known
methods that would allow the web server to send the file and detect a
completion or cancellation?
Change protocols:

ftp://...


--
Rob

Dan D
Guest
 
Posts: n/a
#4: Oct 23 '06

re: How to tell if a file download completed?


Kevin Darling wrote:
Quote:
Dan D wrote:
>
Quote:
>>I have a large install file (an exe) on my web Apache server that people
>>download and install from. Looking at my log files, I see a lot of
>>people downloading it, but no way to tell for sure if they completed the
>>download or cancelled out before it completed. Are there any known
>>methods that would allow the web server to send the file and detect a
>>completion or cancellation?
>
>
This probably won't help you, especially if you can't add to the
installation file, but our situation was more under my control:
>
We had a package that had to be downloaded and installed. What we did
was include a DLL that we could check for in our login page. If we saw
the OBJECT correctly, then we didn't go to the download page. If we
didn't see the OBJECT then we asked the person to run the install file,
then click a button to try login again. They basically could not get
in until we saw the DLL we had installed.
>
If you can include an ActiveXObject like this in the installation, you
could check for it later.
>
Just a thought,
Kev
I thought of trying something like that, but couldn't quite get that to
fit into the entire scenario. Thanks for the advice. Dan

Dan D
Guest
 
Posts: n/a
#5: Oct 23 '06

re: How to tell if a file download completed?


RobG wrote:
Quote:
Dan D wrote:
>
Quote:
>>I have a large install file (an exe) on my web Apache server that people
>>download and install from. Looking at my log files, I see a lot of
>>people downloading it, but no way to tell for sure if they completed the
>>download or cancelled out before it completed. Are there any known
>>methods that would allow the web server to send the file and detect a
>>completion or cancellation?
>
>
Change protocols:
>
ftp://...
Yeah, I wish. I think those 3 little letters scare too many people :)
Dan
VK
Guest
 
Posts: n/a
#6: Oct 23 '06

re: How to tell if a file download completed?


Change protocols:
Quote:
Quote:
ftp://...
Quote:
Yeah, I wish. I think those 3 little letters scare too many people :)
:-)
Client:
<a href="TinyCuty.html">Tiny Cuty HTML page</a>

Server mod_rewrite:
TinyCuty.html HellBigExecutable.exe
:-)

:-|
IMHO "3 little letters scaring too many people" are not "ftp" but
"exe". Unless you are some trusty brend, you'll get much better chances
to be downloaded in .zip format.

For the original question I don't see a way to do anything client-side.
If you have control over server, you can bind each download to some
deamon to compare later the file size with actual packets sent.

Closed Thread