Jörg Battermann
2008-Sep-17 22:46 UTC
swfupload with active_record_store? Or any other ''mass''-uploader?
Hello there, Has anyone successfully integrated swfupload into his/her rails (2.x) project using a non cookie based session store? I am asking because with the active_record_store (let alone stefan kaes'' sql_session_store) I can''t get it to work at all, when re-enabling cookies (meh) it works .. uploading wise, but now I get InvalidAuthenticityToken Exceptions in other places, e.g. when destroying an object. Alternatively, does anyone know (first hand) any other, rails- friendlier mass-uploading solutions? Cheers, -J --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Peter De Berdt
2008-Sep-18 07:58 UTC
Re: swfupload with active_record_store? Or any other ''mass''-uploader?
On 18 Sep 2008, at 00:46, Jörg Battermann wrote:> Has anyone successfully integrated swfupload into his/her rails (2.x) > project using a non cookie based session store? I am asking because > with the active_record_store (let alone stefan kaes'' > sql_session_store) I can''t get it to work at all, when re-enabling > cookies (meh) it works .. uploading wise, but now I get > InvalidAuthenticityToken Exceptions in other places, e.g. when > destroying an object. > > Alternatively, does anyone know (first hand) any other, rails- > friendlier mass-uploading solutions?You''re going to face the same problem with all of them, and to be honest, SWFUpload is the only one I got to work with Rails >2 apps. If you follow my instructions as I posted them a while ago, you should be able to get it to work (my solution works for sure with the cookiestore, but it should work for any session store): http://www.ruby-forum.com/topic/161291 Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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 For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jörg Battermann
2008-Sep-20 13:55 UTC
Re: swfupload with active_record_store? Or any other ''mass''-uploader?
Hello there Peter, thanks! I''ve taken your modified swfupload fix and simply added a tiny block to accommodate the ActiveRecord:Store http://gist.github.com/11753 Cheers and have a nice weekend! :) -J On Sep 18, 9:58 am, Peter De Berdt <peter.de.be...-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> On 18 Sep 2008, at 00:46, Jörg Battermann wrote: > > > Has anyone successfully integrated swfupload into his/her rails (2.x) > > project using a non cookie based session store? I am asking because > > with the active_record_store (let alone stefan kaes'' > > sql_session_store) I can''t get it to work at all, when re-enabling > > cookies (meh) it works .. uploading wise, but now I get > > InvalidAuthenticityToken Exceptions in other places, e.g. when > > destroying an object. > > > Alternatively, does anyone know (first hand) any other, rails- > > friendlier mass-uploading solutions? > > You''re going to face the same problem with all of them, and to be > honest, SWFUpload is the only one I got to work with Rails >2 apps. > > If you follow my instructions as I posted them a while ago, you should > be able to get it to work (my solution works for sure with the > cookiestore, but it should work for any session store):http://www.ruby-forum.com/topic/161291 > > Best regards > > Peter De Berdt--~--~---------~--~----~------------~-------~--~----~ 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 For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
JWB
2008-Oct-08 17:59 UTC
Re: swfupload with active_record_store? Or any other ''mass''-uploader?
We applied the patch as Peter described and had good results. Recently, the uploads started failing for a significant number of our users - they are told to login even though they already authenticated. We upgraded to Rails 2.1.1, so I''m looking for a cause there (though tests succeed). I''m also looking for browser-specific behavior, since some users seem to be able to upload successfully. Please let me know if you''ve seen any new issues crop up with Rails 2.1.1. On Sep 18, 12:58 am, Peter De Berdt <peter.de.be...-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> On 18 Sep 2008, at 00:46, Jörg Battermann wrote: > > > Has anyone successfully integrated swfupload into his/her rails (2.x)[ .. snip ..]> > You''re going to face the same problem with all of them, and to be > honest, SWFUpload is the only one I got to work with Rails >2 apps. > > If you follow my instructions as I posted them a while ago, you should > be able to get it to work (my solution works for sure with the > cookiestore, but it should work for any session store):http://www.ruby-forum.com/topic/161291 > > Best regards > > Peter De Berdt--~--~---------~--~----~------------~-------~--~----~ 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 For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Peter De Berdt
2008-Oct-09 10:20 UTC
Re: swfupload with active_record_store? Or any other ''mass''-uploader?
On 08 Oct 2008, at 19:59, JWB wrote:> We applied the patch as Peter described and had good results. > Recently, the uploads started failing for a significant number of our > users - they are told to login even though they already > authenticated. We upgraded to Rails 2.1.1, so I''m looking for a cause > there (though tests succeed). I''m also looking for browser-specific > behavior, since some users seem to be able to upload successfully. > > Please let me know if you''ve seen any new issues crop up with Rails > 2.1.1.One thing to be aware of, is that the Flash Player 10 beta will break all of the current Flash-based uploaders because of new security measures put into place. A workaround solution has been posted on the Adobe Flash blog (putting a transparent flash movie over the link instead of calling some javascript that triggers the file dialog from the onclick event) but I don''t think any of the uploaders has implemented such a solution yet. I haven''t come across your problem though, even though our users have a variety of browsers (we don''t support IE6 anymore, and have no official support for Opera and Chrome (yet)). Best regards Peter De Berdt --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Jörg Battermann
2008-Nov-17 00:13 UTC
Re: swfupload with active_record_store? Or any other ''mass''-uploader?
The current swfupload 2.2 betas have that workaround integrated.. and it works perfectly fine. Only minor changes need to be made the way the swfupload is initialized... -J On Oct 9, 11:20 am, Peter De Berdt <peter.de.be...-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> On 08 Oct 2008, at 19:59, JWB wrote: > > > We applied the patch as Peter described and had good results. > > Recently, the uploads started failing for a significant number of our > > users - they are told to login even though they already > > authenticated. We upgraded to Rails 2.1.1, so I''m looking for a cause > > there (though tests succeed). I''m also looking for browser-specific > > behavior, since some users seem to be able to upload successfully. > > > Please let me know if you''ve seen any new issues crop up with Rails > > 2.1.1. > > One thing to be aware of, is that the Flash Player 10 beta will break > all of the current Flash-based uploaders because of new security > measures put into place. A workaround solution has been posted on the > Adobe Flash blog (putting a transparent flash movie over the link > instead of calling some javascript that triggers the file dialog from > the onclick event) but I don''t think any of the uploaders has > implemented such a solution yet. > > I haven''t come across your problem though, even though our users have > a variety of browsers (we don''t support IE6 anymore, and have no > official support for Opera and Chrome (yet)). > > Best regards > > Peter De Berdt--~--~---------~--~----~------------~-------~--~----~ 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 For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---