I'm cross posting about an issue that impacting the Paperclip plugin
for Rails. To quote the issue:
"I noticed that posting a multipart form with a blank file_field
submits a nil in edge rails. Is this the intended behavior? In rails
2.2 it submitted an empty string.
I'm using the paperclip plugin which ignores the empty string but
deletes attachments that are set to nil. With this new behavior,
paperclip deletes every attachment on update. If this is the intended
behavior for rails 2.3 then I'll submit a ticket on the paperclip
project about modifying the plugin to handle nil values a different
I posted a patch here:
The idea solution may be to ignore empty file_field submissions, but I
could only figure out how to submit "" instead of nil. Maybe someone
would like to give it another shot. If not, this seems to alleviate
the immediate concern, at least.