I am creating a video uploading website. I would like to avoid having files overwitten when they have the same file name. is there a way to automatically increment the filename if it exists?
My current code is just uploading:
'declare the file path to store uploads
Dim path As String = Server.MapPath("~/UploadedVideos/" & UserLogin.UserNo & "/")
FileUploadVideo.PostedFile.SaveAs(path & FileUploadVideo.FileName)