WordPress.org

Ready to get started?Download WordPress

Forums

auto rename uploads? (4 posts)

  1. photojunkie
    Member
    Posted 9 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.

  2. oriecat
    Member
    Posted 9 years ago #

    Pictorialis does that when it uploads. I will look at the code and see if I can tell where/how it does it.

  3. photojunkie
    Member
    Posted 9 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.

  4. You're gonna wanna modify the code around line 120 of /wp-admin/upload.php I believe.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.