I recently create a custom component with Component Creator, and I have a form in admin area that uploads file...
But I can't upload files with same name it's going to replace the previous file, now I want to rename the file on upload not moving them is the best idea?
I don't know how to rename a file on upload, I've used the save()
function in my component controller but it didn't work.
_1
on to the end. Of course, you will have to increment the number in awhile
loop