So, you are writing a web application, and you have several areas of the site where the user can upload files. My main working method for this is to store the actual file on the server and have a database table that associates the saved file name with the record to which it refers.
My question is this: should there be another table for each file type? Also, should the files be stored in context-sensitive places on the server or all together?
Some examples: user profile photos, resumes with the application, related documents on CMS pages, etc.
source
share