# Copying attachments

**URL:** <https://www.ruby-forum.com/t/copying-attachments/131649>\
**Category:** Rails\
**Created:** [March 12, 2008, 5:16am UTC](https://www.ruby-forum.com/t/copying-attachments/131649 "2008-03-12T05:16:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Earthman](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/9dc877/32.png) [@Earthman](https://www.ruby-forum.com/u/Earthman)\
**Post date:** [March 12, 2008, 5:16am UTC](https://www.ruby-forum.com/t/copying-attachments/131649/1 "2008-03-12T05:16:32Z")

</div>

I’m successfully using attachment\_fu with the S3 backend. I want to  
be able to copy an attachment without downloading and re-uploading  
it. It needs to be a deep copy – i.e., both the binary and the  
database records need to be copied.

Before I dive in and write it all myself, I thought I’d ask if anyone  
had experience with this.

Thanks,  
Adam Hertz
