I am working on a directory in WordPress, and I am looking for a plugin that will rename files that are uploaded to my site when they are uploaded.
For example, if someone uploads a file called “mycat.jpg”, it will rename it to a randomized set of numbers and/or letters, like “1xfde4f3.jpg” or something similar.
I want to do this to avoid duplicate file names and seeing -2, -3 after the file names. This would also help prevent image theft.
I am also looking for something that will append letters or numbers to a page name, like a zip code or something (ie. “bar-name-34668”) to avoid duplicate titles for businesses that have the same name, but are in different locales.
Any suggestions?
Not tested personally, but this page provides a short and sweet function to randomize uploaded filenames which you could adjust according to whatever format you’d like > [https://www.howtogeek.com/devops/how-to-randomize-uploaded-filenames-in-wordpress/](https://www.howtogeek.com/devops/how-to-randomize-uploaded-filenames-in-wordpress/)
https://stackoverflow.com/questions/3259696/rename-files-during-upload-within-wordpress-backend