I'm trying to think of the upload method I want to use for my news script.
Right now, I have it so that when the user uploads a file, it renames the file to ####_##.ext, where #### is the news item ID (such as 42), ## is the image number (such as 2, since multiple images can be uploaded with each post), and ext is the extension, either .gif or .jpg.
So if I'm posting an item and uploading two pictures, they would be renamed to: 42_1.gif and 42_2.gif
I think this is a good method as it's also easy to determine which files were uploaded with each post, since the numbers before the _ will match the post ID.
However, this can be confusing to anyone looking at the file names, as they're not very straightforward as to what the picture is.
So should I keep my method, or should I just keep the name the user gives to it (and check to make sure that name isn't already used)? What method seems most beneficial?
