WordPress.org

Support

Support » How-To and Troubleshooting » auto rename uploads?

auto rename uploads?

  • 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Pictorialis does that when it uploads. I will look at the code and see if I can tell where/how it does it.

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘auto rename uploads?’ is closed to new replies.
Skip to toolbar