Re: [Rails] Re: Rails, Paperclip and SWFupload ...

2010-05-19 Thread Peter De Berdt
On 19 May 2010, at 00:08, Philip Hallstrom wrote: Good to know. That won't help with the authenticity token though... Indeed, our swfuploads are completely separated into reusable Javascript objects, so I didn't think of it anymore. Note to self: don't answer mailing list replies while

[Rails] Re: Rails, Paperclip and SWFupload ...

2010-05-18 Thread Ruby on Rails: Talk
Hi I solved it ... but have no idea why! Needed to change: self.file = data to self.photo = data And it works ... h ... On May 18, 7:10 pm, Ruby on Rails: Talk dazzaroo...@gmail.com wrote: Hi I'm sure this is in the wrong group - so any suggestions for a right group would be great!

Re: [Rails] Re: Rails, Paperclip and SWFupload ...

2010-05-18 Thread Philip Hallstrom
On May 18, 2010, at 11:41 AM, Ruby on Rails: Talk wrote: Hi I solved it ... but have no idea why! Needed to change: self.file = data to self.photo = data And it works ... h ... Because your Photo model has_attached_file :photo, ... *NOT* has_attached_file :file, ...

[Rails] Re: Rails, Paperclip and SWFupload ...

2010-05-18 Thread Ruby on Rails: Talk
Thanks so much for you help with the problem and the suggestion with new version of swfupload! I don't suppose you have any clear insight into why I can't get the InvalidAuthorizationToken thing to work do you? Thanks once again for help already given and any more you might be able to offer

Re: [Rails] Re: Rails, Paperclip and SWFupload ...

2010-05-18 Thread Philip Hallstrom
Thanks so much for you help with the problem and the suggestion with new version of swfupload! I don't suppose you have any clear insight into why I can't get the InvalidAuthorizationToken thing to work do you? My guess is you're not passing it along via Flash. See this bit in

Re: [Rails] Re: Rails, Paperclip and SWFupload ...

2010-05-18 Thread Peter De Berdt
On 18 May 2010, at 21:40, Philip Hallstrom wrote: My guess is you're not passing it along via Flash. See this bit in app/views/home/index.html.erb where I invoke the swfupload object. See where it's passing the session key and the authenticity token? That's important. And also why you

Re: [Rails] Re: Rails, Paperclip and SWFupload ...

2010-05-18 Thread Philip Hallstrom
My guess is you're not passing it along via Flash. See this bit in app/views/home/index.html.erb where I invoke the swfupload object. See where it's passing the session key and the authenticity token? That's important. And also why you need that middleware stuff.