# Importing bulk files using Attachment\_fu

**URL:** <https://www.ruby-forum.com/t/importing-bulk-files-using-attachment-fu/141300>\
**Category:** Rails\
**Created:** [June 24, 2008, 2:49pm UTC](https://www.ruby-forum.com/t/importing-bulk-files-using-attachment-fu/141300 "2008-06-24T14:49:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MW\_Administrator](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/aeb1de/32.png) [@MW\_Administrator](https://www.ruby-forum.com/u/MW_Administrator)\
**Post date:** [June 24, 2008, 2:49pm UTC](https://www.ruby-forum.com/t/importing-bulk-files-using-attachment-fu/141300/1 "2008-06-24T14:49:27Z")

</div>

Hi -

Around the corner I have a project to migrate thousands of images per  
user accounts. The existing structure is each user has a folder named  
after their account - in it is all of their pics.

On the new setup I am using attachment\_fu, which I noticed while using  
physical storage on the server stores the images into folders/subfolders  
based upon the object (if i’m not mistaken).

Question is - what’s the best approach to move all these images to the  
new system? Adjust attachment\_fu’s storage method to mirror our  
existing setup or write some sort of script to batch them in?

Any help/tips appreciated.

Thanks!

---

<div class="post-metadata">

**Author:** ![MW\_Administrator](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/aeb1de/32.png) [@MW\_Administrator](https://www.ruby-forum.com/u/MW_Administrator)\
**Post date:** [June 24, 2008, 6:54pm UTC](https://www.ruby-forum.com/t/importing-bulk-files-using-attachment-fu/141300/2 "2008-06-24T18:54:52Z")

</div>

In general what i find is that going the way the authors intended it  
to always gives better results (or less headache) .

So i would batch insert them through a script.
