Is there any Yii helper or method to save a file without overwrite an existing file ? Something that would manage the name of the file depending on the others on the server.
I’m looking for something quite similar to the Codeigniter file uploader.
Yii has a CUploadedFile helper class, but as I now it has no such feature to check for existing file before saving.
You have to do this manually or you can use Codeigniter class. As I see from sources it has no dependencies, so it should be easy to use it in Yii application.