Active Record session store breaks file uploads

Hi all,

I recently switched from the default session store has broken. When I select a file to upload, using a standard form, and click submit, I am shown an error page:

Status: 500 Internal Server Error can't dump File

In the log this shows up as "TypeError(can't dump File)". The stack trace suggests that active record store is the culprit - does anyone know how to fix this?

Many thanks, Adam

Hi all,

I recently switched from the default session store to :active_record_store, and my file uploading (using attachment_fu) has broken. When I select a file to upload, using a standard form, and click submit, I am shown an error page:

Status: 500 Internal Server Error can't dump File

In the log this shows up as "TypeError(can't dump File)". The stack trace suggests that active record store is the culprit - does anyone know how to fix this?

Sounds like it's trying to put something (a File) in the session that can't be stored in the session.

Fred