The-Last-Escape Posted May 3, 2007 Share Posted May 3, 2007 My little application is a simple file upload system. There is only ever going to be one user who will upload, and one user who will download the file. There is also an archive of current uploaded files for the download person, and a separate archive page for the uploader which is the same, but includes a delete function to delete the db record and also to delete the actual file. When a file is uploaded, an email is sent to the person who will download the file when he is ready, by visiting the archive page and choosing which file he wishes to dowload and clicking the 'download' link. So far so good. What I want to do now is to have a 'Yes'/'No' next to the archive of each file which will let the user know whether the file has been downloaded or not. The question is.....how do I detect if the file has been downloaded or not? Thanks for any suggestions Link to comment https://forums.phpfreaks.com/topic/49789-file-upload-help/ Share on other sites More sharing options...
suzzane2020 Posted May 3, 2007 Share Posted May 3, 2007 When the download link is clicked save a record in the databse with the file name or id and a status yes or no when the download is clicked set it as yes and if not by default 'No' So u just need to check the value in the databse and display Yes or no Link to comment https://forums.phpfreaks.com/topic/49789-file-upload-help/#findComment-244219 Share on other sites More sharing options...
ToonMariner Posted May 3, 2007 Share Posted May 3, 2007 You can't really detetct - you can however record whether the file download has been attempted when the link is clicked but that is all really... Link to comment https://forums.phpfreaks.com/topic/49789-file-upload-help/#findComment-244220 Share on other sites More sharing options...
suzzane2020 Posted May 3, 2007 Share Posted May 3, 2007 hmm ya thts rite.. cant be sure if the download was successfull... Link to comment https://forums.phpfreaks.com/topic/49789-file-upload-help/#findComment-244221 Share on other sites More sharing options...
The-Last-Escape Posted May 3, 2007 Author Share Posted May 3, 2007 Thanks guys Link to comment https://forums.phpfreaks.com/topic/49789-file-upload-help/#findComment-244226 Share on other sites More sharing options...
Barand Posted May 3, 2007 Share Posted May 3, 2007 This might help http://www.phpfreaks.com/forums/index.php/topic,120562.msg494626.html#msg494626 Link to comment https://forums.phpfreaks.com/topic/49789-file-upload-help/#findComment-244553 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.