Unique uploaded media names by adding some extra random string
Current Version: 1.0
Author: Sazzad Hossain Sharkar
Author URI: https://github.com/shsbd
- Adds unique suffix at the end of the uploaded file name. e.g.: test-image-
311629-W3dRonmw.jpg - Generated strings are very unique and less possibility of confliction
- Remove Accents
Convert to ASCII - Crypto Rand Secure with
openssl_random_pseudo_bytes - Added more extra switch conditions to use other string generator. (
Numeric,Alpha Numeric,No Zero Numeric,All String,Hexadecimal,Capital,AlphaandDistinct). Just edit line number74and75. - converts unnecessary space, underscore and special characters to hyphen character.
- Consumes very low memory
- Single file
less than 3KB - Open source license, modify and distribute with your own.
GNU GPLv3 - Tested with
WordPress 4.9.4
Download from, https://github.com/aifdn/unique-uploaded-media-name/archive/master.zip
- Upload the entire
unique-uploaded-media-namefolder to the/wp-content/plugins/directory. (If the folder name changes, rename the folder name with your own.) - Activate the plugin through the ‘Plugins’ menu in WordPress.
If you would like to add some extra features, just fork the repository, edit and make a pull request.
Just send an email to sharkar@akhaura.info . I will be happy to answer your queries.
