I have collection of videos and audios in my server, where users can download by paying some amount.
Suppose user pay the amount for me and start the download but accidentally the download fails how can i detect that and i can provide him to download again.
The download link i provided is like rapidshare/megaupload/hotfile etc everytime unique. So once user downloaded the file link will die.
Update:
I want to provide the download link once after paying he can't download again and again by using the download key. Once download is completed even if he wants to download same thing he has to pay but if download fails then I can give to download again.