On Oct 15, 8:30 am, Anjan Tek <[EMAIL PROTECTED]>
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@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---