Yii Framework Forum: Csrf Token Verification Error While Uploading File Using Plupload - Yii Framework Forum

Jump to content

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

Csrf Token Verification Error While Uploading File Using Plupload Rate Topic: -----

#1 User is offline   VINAY Kr. SHARMA 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 151
  • Joined: 13-September 11
  • Location:Gurgaon

Posted 25 October 2012 - 03:18 AM

Hello,

I'm trying to upload a video file on server using PlUpload.
On PlUpload forum website I was unable to find any solution about how to send additional field value before upload.

I want to post CSRF token and its value before video uploading get started. Right now my server throwing an error with [400 Bad Request] "The CSRF token could not be verified.".

Please help me

Thanks

VINAY Kr. SHARMA
@vinaykrsharma
Facebook ID: vinaykrsharma
Blog

Co-operation comes from friendship, friendship comes from trust, and trust comes from kind-heartedness.
0

#2 User is offline   Keith 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,670
  • Joined: 04-March 10
  • Location:UK

Posted 25 October 2012 - 03:24 AM

http://stackoverflow...-using-plupload

Your CSRF token name and value are stored in
Yii::app()->request->csrfTokenName;
Yii::app()->request->csrfToken;

2

#3 User is offline   VINAY Kr. SHARMA 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 151
  • Joined: 13-September 11
  • Location:Gurgaon

Posted 25 October 2012 - 03:40 AM

View PostKeith, on 25 October 2012 - 03:24 AM, said:

http://stackoverflow...-using-plupload

Your CSRF token name and value are stored in
Yii::app()->request->csrfTokenName;
Yii::app()->request->csrfToken;



It works.

Thanks a ton boss
VINAY Kr. SHARMA
@vinaykrsharma
Facebook ID: vinaykrsharma
Blog

Co-operation comes from friendship, friendship comes from trust, and trust comes from kind-heartedness.
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