Jump to content

Edit filename in image field


Jozsef
 Share

Recommended Posts

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

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.

  • Like 4
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...