In yii FW, there are provided us a CUploadedFile in order to upload filed to server. But, can I rename the file uploaded by users. I want to make each file uploaded by users are indicated by a difference name.
I plan to change file’s name of uses upload to a numberic value (using time() function to edit the file name. For example: if user uploads a image file named: imageUpload_1.jpg, so, I want to edit the file name to cuurent time: 109231391.jpg)
Have every one ever did it?