I am in the process of creating a webpage that will allow the user to upload video/mp3/images. I have been browsing around looking for something that would point me in the right direction but have nothing that has helped clear this up.
Would it be more effective to set up a new directory for each user when the account is made or to keep the files in one folder for the corresponding file type?
EXAMPLE 1:
htdocs/user/media/image
htdocs/user/media/video
htdocs/user/media/audio
it seems that this option would allow for quicker updates for each user once they are already logged in but would mean for alot of new folders if I get a lot of people joining the site.
Example 2:
htdocs/media/image
htdocs/media/video
htdocs/media/audio
this option seems could get out of hand very quickly and could effect the speed of accessing the files.