With the attachment_fu rails plugin, is there any way to delete files uploaded to Amazon S3?
Posted
by Eric Nguyen
on Stack Overflow
See other posts from Stack Overflow
or by Eric Nguyen
Published on 2010-06-17T05:37:07Z
Indexed on
2010/06/17
5:43 UTC
Read the original article
Hit count: 254
Let's say I'm using attachment_fu to attach profile pics to user profiles in a system, with Amazon S3 used as the actual file storage. When users upload new profile pics, I'd like to replace the attached file with the new one. I can do this within my database (i.e. the file metadata) easily, but attachment_fu doesn't seem to provide methods for deleting the files from S3.
Am I missing something, or am I approaching this the wrong way?
Many thanks!
© Stack Overflow or respective owner