# File upload directory structure

**URL:** <https://www.ruby-forum.com/t/file-upload-directory-structure/63826>\
**Category:** Rails\
**Created:** [June 19, 2006, 6:59pm UTC](https://www.ruby-forum.com/t/file-upload-directory-structure/63826 "2006-06-19T18:59:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![natec](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/ec9cab/32.png) [@natec](https://www.ruby-forum.com/u/natec)\
**Post date:** [June 19, 2006, 6:59pm UTC](https://www.ruby-forum.com/t/file-upload-directory-structure/63826/1 "2006-06-19T18:59:10Z")

</div>

hello, I am building an application where different users will be  
uploading multiple documents and I would like some advice about how to  
save the document into the file system.

What i know so far: I have a document model and it has some attributes  
about what type of document it is, when it was uploaded, the url (or  
filename) of the document, and more.

I guess my questions are:  
Would you save all of the documents into one directory?  
What is the naming convention you would use?

Any suggestions or examples of what you’ve done in the past would be  
extreemly helpful to me,

Thank you for your help,

Nate
