Hey Everyone,
I’m working on a project and one of the requirements is document uploading and viewing. I have decided on storing the documents on the web server and not in the database. The question I have is this…what is a good approach to storing a large number of documents on the server? The uploaded documents will be associated with a master record ID in the database so I thought about creating a folder with the same date the record as the master and then prefacing the file name with the ID like this
2009-4-3
234
234-document.pdf
234-courtrecord.pdf
Does this seem solid and intuitive? I added the ID to the file incase it ever gets moved out of the folder for any particular reason. Would there be any disadvantage to storing them this way?
Just looking for feedback and maybe a better solution.