开发者

Active record store for sessions with multi uploader (uploadify, plupload) with Rails 3?

Is possible to integrate some multifile uploader (like plupload, uploadify) with active records store for sessions in Ruby on Rails 3?

I just foun开发者_Python百科d only cookie store examples.


Uploader::Application.config.session_store :active_record_store, :key => '_uploader_session'

Rails.application.config.middleware.insert_before(
  Rails.application.config.session_store,
  FlashSessionCookieMiddleware,
  Rails.application.config.session_options[:key]
)

I hope this is helpful.


I actually wouldn't stick with the flash-free solution. I encountered security issues in IE. Uploadify (the flash-version) was way easier to implement on the client-side. Yes, using a 3rd-party plugin sucks but in this case I'd stick with it.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜