Yii Framework Forum: uploadify + CsrfValidation - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

uploadify + CsrfValidation Rate Topic: -----

#1 User is offline   duplabe 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 11-August 09

Posted 15 July 2010 - 06:59 AM

Hi guys,

I'm using uploadify to upload images. CsrfValidation is enabled, so i have to send the csrftoken when uplodaify uploads a file. I acutaly see csrftoken in the $_POST array, but I get the 'The CSRF token could not be verified.' error message.

Thx for any help.
0

#2 User is offline   duplabe 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 11-August 09

Posted 15 July 2010 - 08:42 AM

Oooh crap, flash starts a new session...
0

#3 User is online   Mike 

  • Elite Member
  • PipPipPipPipPip
  • Yii
  • Group: Members
  • Posts: 3,013
  • Joined: 06-October 08
  • Location:Upper Palatinate

Posted 16 July 2010 - 01:07 AM

Flash does not pass along the cookies for a page. That's why the session is not preserved. I don't know anything about uploadify, but there's a fix in flash described here:

http://scriptactiont...-flash-as3.html

It requires a fix in the flash file though.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users