Hi Mtrautt.

You just need to set the approprate headers and output the file
contents (which can be anywhere on the files system) after checking
access.

Of course, you can do this with any type of file/download, for a pic
example see:
http://www.noswad.me.uk/demos/galleries/show/1/1
and
http://www.noswad.me.uk/demos/galleries/serveImage/1/1

There may well be a better (written) example around somewhere.

The controller code is available in the "download Me" link at the top
of the page. The relavent controller being
/app/plugins/demos/controllers/galleries_controller.php.

HTH,

AD7six


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to