Hello,
I have been searching for way to do this but have not been able to find a single instance of someone else trying this.
I have a simple php site with user registration/login, to allow access to a downloads section.
Right now, I have some simple logic that when a user clicks on the download link, an email is sent to them, telling them about thier download (our service, thanks, etc..).
This usually works fine except for users of built-in browser download managers that open multiple threads to get to the file. Then our server will send out an email for every one of the download threads. Not very pretty sometimes.
I am really looking for a way to trigger off the return code for the download, if that's possible. Or a way to know that x bytes has been reached, therefore download complete and send email.
I'm also logging the downloads to our database, so perhaps I should just do something like if lastdownload greater than one day than currentdownload, email.
Any ideas or suggestions.
Thank you very much.