Auto Rename by Date / Number on upload Auto Rename by Date / Number on upload
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Auto Rename by Date / Number on upload

Started by opulence, February 15, 2005, 07:20:17 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

opulence

Is there a way to have Coppermine automatically rename each uploaded file like:

[date]-
  • .[ext]

    so that

    picture1.jpg -> 02-15-2005-1.jpg
    picture2.jpg -> 02-15-2005-2.jpg
    picture3.jpg -> 02-15-2005-3.jpg
    picture4.jpg -> 02-15-2005-4.jpg

    When they're uploaded?

Joachim Müller

take a look at the admin tools in coppermine's admin menu bar.

Joachim

opulence

Have checked it out... can't seem to find where it would allow me to perform the desired operation noted above:

changing:

anyrandompicname.jpg -> 02-15-2005-1.jpg
anotherPiCnaMe.jpg -> 02-15-2005-2.jpg
picofme1.jpg -> 02-15-2005-3.jpg
friendSanDsTuff123342.jpg -> 02-15-2005-4.jpg

I know there's the option to:
How should the filename be modified (2):
Remove the .jpg ending and replace _ (underscore) with spaces
Change 2003_11_23_13_20_20.jpg to 23/11/2003 13:20
Change 2003_11_23_13_20_20.jpg to 11/23/2003 13:20
Change 2003_11_23_13_20_20.jpg to 13:20

But this only seems to work with files already named '2003_11_23_13_20_20.jpg' ...