Hi!!
Im currently in the process of making a resources module for my site, its basically designed to allow specific users to upload files with comments about them for others to look at and download.
Everythings working great except I realised if there was a file with the same name already in the upload folder it would just over write it with the new one of the same name.
I know how to check if a value from a database or form is present but Im having mind block on how to transfer this logic onto files. Basically I need to know how I can check whether a file with a particular name already exists, so that i can get the upload script to act accordingly and not just overwrite the file.
any help would be appreciated 🙂
Luke