I am having an issue with my project that requires my media URLs to be unique. I have found that if a media item is uploaded, deleted, and reuploaded with the same name in the same month, then the URL for the media item is the same as the old item.
E.g.
- I upload an item named "pic.jpeg" and the URL is "myserver/wp-content/uploads/2022/08/pic.jpeg"
- I delete pic.jpeg from the Media Library
- I upload a different item named "pic.jpeg" and the URL is "myserver/wp-content/uploads/2022/08/pic.jpeg"
I need the second uploaded item to have a different URL from the first, even though it was deleted.
Is there a way I can make media URLs truly unique, by changing the default URL from the "year/mo/name" format to something different?