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 <[email protected]> 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 <[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
