Enhancing Media Uploads in WordPress
Unique Uploaded Media Name is a WordPress plugin designed to prevent file name conflicts during media uploads. By appending a unique random string to each uploaded file name, this tool ensures that every media item retains its individuality, avoiding the default WordPress naming convention where similar files receive numerical suffixes like '-1', '-2', etc. The default string length is set to 15 characters, significantly reducing the possibility of conflicts. For instance, a file named 'my-image.jpg' would be saved as 'my-imageSIu7oQGW.jpg'. This feature is particularly useful for users who frequently upload media with similar names.
Beyond unique naming, the plugin offers additional enhancements such as converting accents to ASCII, generating random strings securely using OpenSSL, and providing various string generation options. Users can choose from numeric, alphanumeric, or hexadecimal strings, among others, by editing specific lines in the code. It also efficiently replaces spaces, underscores, and special characters with hyphens, ensuring cleaner file names. With a minimal memory footprint of just 3.02KB, this open-source plugin is compatible with WordPressand later versions.