Use
File.Exists[
^] to see if the file already exists, and if it does alter it like adding a number to the end, then checking again and so on until you file a file that doesn't exist.
Bear in mind people uploading at the same time though, you might want to implement locking around this code.