photojunkie
Member
Posted 8 years ago #
I would like to keep my images organized by date in the uploads folder of my site. I have seen the upload page rename a file when one with the same name exists.. is there any way to automaticly have it append the date to the beginning of a file name?
ie, foo.jpg would (today) automaticly be renamed to 20050406_foo.jpg
It shouldn't be THAT hard.. but I just can't read through code very well.
Pictorialis does that when it uploads. I will look at the code and see if I can tell where/how it does it.
photojunkie
Member
Posted 8 years ago #
Thanks, I appreciate the assist. I'd like to make it an option of uploading though... that way the files I already organize by date (my serious projects and photos) don't get double-dated... but either way.
You're gonna wanna modify the code around line 120 of /wp-admin/upload.php I believe.