deli
deli

Reputation: 11

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 found only cookie store examples.

Upvotes: 1

Views: 364

Answers (2)

hackingbeauty
hackingbeauty

Reputation: 60

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.

Upvotes: 0

Chaoyang Che
Chaoyang Che

Reputation: 21

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.

Upvotes: 1

Related Questions