Support » Plugins and Hacks » Hacks » Can file names be changed automatically upon upload?

  • Hi,

    Is there a way that when you upload an image to wordpress, it automatically changes the image name in the server?

    For instance if I upload this image:

    thisismyimagename.jpg

    can it automatically change the image name to

    sitename-image-1.jpg

    and then sitename-image-2.jpg for the next image?

    Thanks!

Viewing 1 replies (of 1 total)
  • Not exactly what you’re asking, but this is a similar question, you should be able to adjust the code to suit your needs.

    wordpress.stackexchange.com/questions/5505/rename-files-during-upload-using-variables

    Or if that’s a bit too much to follow, there’s a similar example of renaming here.

    djzone.im/2011/01/change-uploaded-filename-in-wordpress-media-library/

Viewing 1 replies (of 1 total)
  • The topic ‘Can file names be changed automatically upon upload?’ is closed to new replies.