On Feb 12, 2008 10:59 AM, AussieFreelancer
<[EMAIL PROTECTED]> wrote:

>
> Solution:
>
> The solution I thought of, was to store these documents above the
> webroot. So now I have got them saving to .../public/uploads instead
> of .../public/app/webroot/files.. etc
>
> New Problem:
>
> haha, so now my new problem, is it actually possible to access these
> documents? I am writing a controller method that will check if they
> have permission to view the document, and if they do, it should open
> the document somehow, either by redirect, or some other format.
>

Take a look at "media View" which will allow you to read files from
anywhere in the system and serve them (optionally you can also offer
them for downloads) - You can apply your ACL in your controller

Search this group for "media view" or "protected downloads"

HTH

Tarique

-- 
=============================================================
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
=============================================================

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to