Hi - my users can upload an image of themselves as their profile picture. The image could have any random name. However, I'd like to save this file on the server with their UserID as the filename, not whatever they have it on their machine.
I got this working by uploading and renaming but this seems sloppy and dangerous. What if they have the file named as someone else's UserID?
Any tips? Thank you!
Shaw
I got this working by uploading and renaming but this seems sloppy and dangerous. What if they have the file named as someone else's UserID?
Any tips? Thank you!
Shaw