Re: authenticity_token sent, still InvalidAuthenticityToken

Frederick Cheung
2008-10-15T08:16:26Z

On Oct 15, 8:30 am, Anjan Tek
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:
> And this is what I get from the logs:
>
> Processing UploadController#upload_image (for 192.170.50.67 at
> 2008-10-15 12:58:50) [POST]
>   Session ID: fbcd2a610aa9c048c82f1d5733f56837
>   Parameters: {"Filename"=>"Sunflower.gif",
> "temp_Image_Location"=>"/images/temp",
>
"authenticity_token"=>"86b74406048a7f629bd560eab8de771a74c620be",
> "action"=>"upload_image",
"Upload"=>"Submit Query",
> "controller"=>"upload",
"random_File_Name"=>"1224055727771_274.gif",
>
"Filedata"=>#<ActionController::UploadedStringIO:0x2701294>}
>
> ActionController::InvalidAuthenticityToken
> (ActionController::InvalidAuthenticityToken):
>
> ____________________________
>
> As you can see, both the values are the same. Still I''m getting
the same
> error.
>
But is the session id the same for the request for the page where you
click upload and for the upload request itself ?(and obviously when
the session id changes so does the authenticity token, so that hard
coded value in getAuthenticityToken will only get you so far.)

Fred
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com