# Copying attachments

**URL:** <https://discuss.rubyonrails.org/t/copying-attachments/26183>\
**Category:** rubyonrails-talk\
**Created:** [March 12, 2008, 4:15am UTC](https://discuss.rubyonrails.org/t/copying-attachments/26183 "2008-03-12T04:15:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Earthman](https://avatars.discourse-cdn.com/v4/letter/e/9dc877/32.png) [@Earthman](https://discuss.rubyonrails.org/u/Earthman)\
**Post date:** [March 12, 2008, 4:15am UTC](https://discuss.rubyonrails.org/t/copying-attachments/26183/1 "2008-03-12T04:15:57Z")

</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
