Upload: rename if file exists (case sensitive)?
I have a form in which the user uploads a file. The file is renamed if another file with the same name already exists.
The filename comparison is case sensitive so File1.doc is different from file1.doc. And then it gets uploaded.
But when I need to download all files to a Windows operating system pc I get lots of file overwritten, since File1.doc will overwrite file1.doc (or viceversa).
Is there a workaround for this?