Re: Cuploadify

2011-06-12 Thread M. Meiboom
Indeed. Since the Uploadify script uses different headers, CakePHP
wont recognize the session of the user! You can sent along the session
id as parameter and then in your controller beforeFilter check for
uploadify and session_id to restore the usersession if applicable.

See: 
http://cakephp.19694.n2.nabble.com/Uploadify-and-lost-session-td3832713.html

On 11 jun, 15:32, jodator  wrote:
> Hi, I had similar problems and I think that you can set session is to
> your uploadify settings. Then check it in your upload controller and
> create session
> in beforeFilter.
>
> On 10 Cze, 17:32, Niels  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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cuploadify

2011-06-11 Thread Niels
Thanks for the replies guys,

@jodator : I fixed it the way you said works like a charm. Thanks for
the advise.

On Jun 11, 3:32 pm, jodator  wrote:
> Hi, I had similar problems and I think that you can set session is to
> your uploadify settings. Then check it in your upload controller and
> create session
> in beforeFilter.
>
> On 10 Cze, 17:32, Niels  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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cuploadify

2011-06-11 Thread jodator
Hi, I had similar problems and I think that you can set session is to
your uploadify settings. Then check it in your upload controller and
create session
in beforeFilter.


On 10 Cze, 17:32, Niels  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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Cuploadify

2011-06-11 Thread Marco
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  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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Cuploadify

2011-06-10 Thread Niels
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
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php