Re: Handling File on Upload

Walter Lee Davis
2010-12-06T21:59:07Z

On Dec 6, 2010, at 4:01 PM, David Kahn wrote:

> The only thing if I recall, that kept me from using paperclip for my
> purposes, is the file essentially attached to the model but does not
> allow for modification and re-saving the file --- am I mistaken?
> Unless things have changed recently, it would be super-cool if
> Paperclip would handle file mods just as a mod to any attribute of
> the model... although I guess this gets away from the basic intent
> of Paperclip, which for what it does do does it very nicely.


You are mistaken, and although I came late to the Paperclip party, I
can''t recall a time when it was true. You can edit the model without
modifying the image (just don''t upload another image) and everything
stays the same in the image, or you can upload a new image and it will
overwrite the previous version. It''s all managed when you save the
model that the image is attached to.

Walter