This is what i want to do…………
I am going to let each user upload multiple images into a folder called ‘pics’. If the user upload say ‘MyImage.jpg’ i will rename it ‘MyImage_UserID.jpg’. Where UserID will be the User’s unique ID of course. This way when i look for all the images of a user i will just look for the image name that ends with the UserID.
Is this wrong, or is there another way of doing this?
I am thinking about placing ALL the images from all the users in 1 folder.
It will be stupid to create a folder for each User dont you think?
Also, how save will that folder ‘pics’ be? Like i dont want hackers to add or delete pictures out of that folder.
Any input?
Provided there will be some significant number of users with significant amount of images per user, your File System will start to suffocate (provided it won’t crash being unable to handle large number of files).
What I recommend is to create a folder for each user. And no, this is not stupid.