File field becomes String

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 :slight_smile:

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs