You can allow only ajax requests (see RequestHandler) to limit the use
and you can check if $this->Auth->user() is set.

On Jun 10, 12:32 pm, Niels <[email protected]> wrote:
> Hey everybody,
>
> I followed the Cuploadify tutorial (http://www.am05.com/2011/01/06/
> using-uploadify-in-cakephp/).
> And everything worked out great, until I start implementing it in my
> app.
>
> My app uses the Auth component of cakephp and like I experienced
> before with the Swfuploader.
> It is a f***ing mess, to get it working . Now I hope that anybody here
> can give me some advise.
>
> The only way I could get i working was to $this->Auth-
>
> >allow('upload');
>
> But when I enabled this anybody unauthorized could add new files, that
> isn't good ;).
>
> Could anybody share his/her experiences  how I could avoid this
> problem ?
>
> Thanks a lot in advance
>
> Niels

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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