# Uploading an image using attachemnt\_fu

**URL:** <https://www.ruby-forum.com/t/uploading-an-image-using-attachemnt-fu/178543>\
**Category:** Rails\
**Created:** [November 6, 2009, 8:15am UTC](https://www.ruby-forum.com/t/uploading-an-image-using-attachemnt-fu/178543 "2009-11-06T08:15:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [November 6, 2009, 8:15am UTC](https://www.ruby-forum.com/t/uploading-an-image-using-attachemnt-fu/178543/1 "2009-11-06T08:15:55Z")

</div>

Hi,  
I am using image uploading by using attachment\_fu.  
I am able tp upload the images by using attachment\_fu.  
I have seen that images are uploading in ‘public/#{table\_name}/0000’  
directory.  
My question is if my images count becomes greater that 10000 still my  
image uploading directory will be same?  
or it will change?  
Any help appreciated.  
Thanks,  
Tushar

---

<div class="post-metadata">

**Author:** ![gandhi-tush](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/5daacb/32.png) [@gandhi-tush](https://www.ruby-forum.com/u/gandhi-tush)\
**Post date:** [November 6, 2009, 3:24pm UTC](https://www.ruby-forum.com/t/uploading-an-image-using-attachemnt-fu/178543/2 "2009-11-06T15:24:03Z")

</div>

The directory where the image is stored will eventually change when you  
have uploaded enough of them.

But you don’t really have to worry about that as long as you work  
through the application to reference the files. It’s generally called  
“ID partitioning”, or something like that to avoid hitting limits on  
some file systems for the sheer number of directory entries allowed.
