Hello,
I'm trying to figure out the best way to organize user file uploads. Typically they'll be able to use files such images, video, audio, PDF, office documents, etc, but I'm not sure about the best way to go about organizing all these data.
Obviously the easiest would be to just put it all in the same directory: /uploads, but I wonder about the potential for filesystem performance hits (mostly indexing/file listing). The directory could also become too large for a human to manage directly once a lot of files have been uploaded, and it would be harder to split-up content between devices if for some reason storage space became an issue.
Another option would be to split-up files by file type, for example: images go in one directory, audio in another directory, and video in another. It wouldn't be too hard to do something like this, either, but then you sort-of have a problem when trying to classify files that maybe have different types of media associated with them (e.g., Flash can contain text, audio, video, and/or images). This approach may also be somewhat unnecessary, as the first example mentioned might be sufficient for most cases.
So the question for you: what is best, or what seems to work best for you?
Thanks in advance!
Cameron