Protect files and use MVC structure to hand the downloads |
[eluser]cristian.tantar[/eluser]
Hy, I used this method: On upload, i-ve changed the file name and save it somewhere on server, eg: hidden/folder/ In database, I saved the old name, the new name and location of file. In controller, you can download the file by simply call: download/[fileid] You can change to download/[new-random-name] and limit this download by login, etc. Regards, www.tantar.info |
Messages In This Thread |
Protect files and use MVC structure to hand the downloads - by El Forum - 04-18-2012, 12:41 PM
Protect files and use MVC structure to hand the downloads - by El Forum - 04-18-2012, 01:31 PM
|