There may be a direct way but I am not aware of it.  As a proposed 
solution you could have the user call a perl script that has the 
following steps:

1) create a lock file (or something similar)
2) open the file that is to be downloaded
3) print the proper header for that file type
4) print the file
5) remove the lock file

Since the data in the file is being passed through the perl script at 
the point before the lock file is removed, as long as that download is 
occuring the file will exist, so then checking for the file would tell 
you if it is being downloaded....... (watch out for browser time outs, 
they shouldn't happen but you should test this!)

Obviously you could make a dynamic named lock file, etc. to do things 
like tracking who is doing the downloading, how many, etc.  This also 
depends on teh size of the downloadable file, I am assuming you are 
talking about a sizeable download.

Hope this helps,

http://danconia.org


Octavian Rasnita wrote:
> Hi all,
> 
> I want to check if a certain file is downloading  in this moment by a page
> visitor.
> Is it possible with Perl?
> 
> I want to tell me true if the file is in the downloading process, and false
> if the download has finished.
> 
> Thank you.
> I hope it is possible.
> 
> Teddy Center: http://teddy.fcc.ro/
> Mail: [EMAIL PROTECTED]
> 
> 
> 



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to