Auto rename files with same filename but different extension Auto rename files with same filename but different extension
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Auto rename files with same filename but different extension

Started by NevilleX, October 22, 2006, 11:44:57 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

NevilleX

I would like to have an option to auto rename files with same filename but different extension while uploading.
For example if there is a file in the gallery called 004.jpg and I want to upload file called 004.mov, I would like to auto rename 004.mov to 004~1.mov.
Just like when it comes to uploading same files with same extenstion (eg. if we have 004.jpg and uploading new file with same filename, it gets renamed to 004~1.jpg)
I hope this is possible, I have tried to make code changes myself but don't have enough knowledge to do that.
I sincerely hope someone can help me with this.