I have a file_field that works fine when sending up a file. But when
making an update the same field behaves like a String, and consequently
the params[:file][:attachment].content_type fails. Why is this?
Pål Bergström wrote:
I have a file_field that works fine when sending up a file. But when
making an update the same field behaves like a String, and consequently
the params[:file][:attachment].content_type fails. Why is this?
Because I missed :multipart => true