Jozsef Posted April 21, 2016 Share Posted April 21, 2016 Hi there, I'm helping my client with on-page SEO and realised that they uploaded a lot of randomly named images.Any suggestions on renaming those files without deleting + re-uploading the file? I educate my clients on the importance of the description field but many would find it difficult to rename a file on their computers before upload... Any workaround you can think of? Maybe using the API to mass rename all images based on their descriptions or page title?Thanks and I'm open to all suggestions (also on how you prevent filenames full of random characters)? Link to comment Share on other sites More sharing options...
adrian Posted April 21, 2016 Share Posted April 21, 2016 http://modules.processwire.com/modules/process-custom-upload-names/ That module will ensure nice filenames - you can configure however you want. That's great for future images, but for the current ones - there is an option in the module to "Rename on save" - generally I don't recommend this one, but in this case it would allow you to create an API script to loop through all pages and resave them. I would test first on a sandbox PW install to make sure everything works as expected. 4 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now