Control access to files available for download

Dieselrat

New Member
I have a folder that contains uploaded documents that my ZF application can spit out to logged in users. I want them to be able to use a link like \[code\]http://server/documents/filename.pdf\[/code\] and download the file, but I want to have a controller \[code\]DocumentsController\[/code\] that enables the existing user cookies to verify that they are logged in and have permission to download the file. I don't want to have to use URLs like \[code\]http://server/documents/index/id/1\[/code\] if I don't have to, though its not a terrible option.
 
Back
Top