Hi Sajith, If you have to provide a direct URL necessarily, it will be hard to achieve this. A simple solution is to provide a dynamic URL, may be with a random key. You can count the number of requests coming with a particular key (you'll have to store this value) and act accordingly. After some time (say a day or 2) you can expire the link.
Thanks, Bhathiya On Tue, Jul 14, 2015 at 8:54 AM, Sajith Abeywardhana <[email protected]> wrote: > Hi, > > When we are implementing a one time download link (for a file > downloading), we have to make sure that the given file is completely > downloaded to the client before garbage the given link. Can you guys please > suggest a way to make sure that the given file is completely downloaded to > the client? I need to do this in server side. > > Sending progress back to the server is not possible in this case. > > Check sent packets and tries to predict download completion is a one way. > Any other suggestions? > > *Sajith Abeywardhana* | Software Engineer > WSO2, Inc | lean. enterprise. middleware. > #20, Palm Grove, Colombo 03, Sri Lanka. > Mobile: +94772260485 > Email: [email protected] <[email protected]> | Web: www.wso2.com > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Bhathiya Jayasekara* *Senior Software Engineer,* *WSO2 inc., http://wso2.com <http://wso2.com>* *Phone: +94715478185* *LinkedIn: http://www.linkedin.com/in/bhathiyaj <http://www.linkedin.com/in/bhathiyaj>* *Twitter: https://twitter.com/bhathiyax <https://twitter.com/bhathiyax>* *Blog: http://movingaheadblog.blogspot.com <http://movingaheadblog.blogspot.com/>*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
