Is there a way I can programmatically determine the status of a download in Chrome or Mozilla Firefox? I would like to know if the download was aborted or completed successfully.
For writing the code I'd be using either Perl, PHP or Python.
Please help. Thank You.
I don't know about Chrome, but recent versions of Firefox keep the download records in a SQLite database (downloads.sqlite in your profile directory). I'm not sure if that gets updated while the download is in progress, but it should tell you the status once the download is complete/aborted.
There are scripts out there that output the file in chunks, recording how many bytes they've echo
ed out, but those are completely unreliable and you can't accurately ascertain whether or not the user successfully received the complete file.
The short answer is no, really, unless you write your own download manager (in Java) that runs a callback to your server when the download completes.