Title: DH &#8211; Rename Uploaded Files
Author: Dannie Herdyawan
Published: <strong>24. September 2019</strong>
Last modified: 18. August 2025

---

Search plugins

![](https://ps.w.org/dh-rename-uploaded-files/assets/banner-772x250.png?rev=2161800)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/dh-rename-uploaded-files/assets/icon-256x256.png?rev=2161800)

# DH – Rename Uploaded Files

 By [Dannie Herdyawan](https://profiles.wordpress.org/k0z3y/)

[Download](https://downloads.wordpress.org/plugin/dh-rename-uploaded-files.4.zip)

 * [Details](https://de-ch.wordpress.org/plugins/dh-rename-uploaded-files/#description)
 * [Reviews](https://de-ch.wordpress.org/plugins/dh-rename-uploaded-files/#reviews)
 *  [Installation](https://de-ch.wordpress.org/plugins/dh-rename-uploaded-files/#installation)
 * [Development](https://de-ch.wordpress.org/plugins/dh-rename-uploaded-files/#developers)

 [Support](https://wordpress.org/support/plugin/dh-rename-uploaded-files/)

## Description

Automatically renames WordPress media uploads with customizable naming patterns 
for better organization and security.

from «hello-world.jpg»

 * to **orlold-whel.jpg**
 * or **hello-world_orlold-whel.jpg**
 * or **d6sf8z7mlo5ey4h90nkqcbixgr3wvj.jpg**

Other Plugins:

 * [DH – Anti AdBlocker](https://wordpress.org/plugins/dh-anti-adblocker/) – Block
   the adblocker

Notes:

 * Only affects newly uploaded files.

## Screenshots

[⌊Plugin settings page in WordPress admin showing all available configuration options
for renaming uploaded files.⌉⌊Plugin settings page in WordPress admin showing all
available configuration options for renaming uploaded files.⌉[

Plugin settings page in WordPress admin showing all available configuration options
for renaming uploaded files.

## Installation

### Automatic Installation

 1. Go to ‚Plugins‘ > ‚Add New‘ in your WordPress admin panel
 2. Search for ‚DH – Rename Uploaded Files‘
 3. Click ‚Install Now‘ and then ‚Activate‘ the plugin
 4. Go to ‚Settings‘ > ‚DH – Rename Uploaded Files‘ to configure the plugin

### Manual Installation

 1. Download the plugin zip file
 2. Go to ‚Plugins‘ > ‚Add New‘ > ‚Upload Plugin‘ in WordPress
 3. Upload the zip file and click ‚Install Now‘
 4. After installation, click ‚Activate Plugin‘
 5. Go to ‚Settings‘ > ‚DH – Rename Uploaded Files‘ to configure the plugin

## Reviews

![](https://secure.gravatar.com/avatar/ff32af0797217e231ecb1e2d46473b0bc3f2a79deae71f4db5079bc7ae6f27c7?
s=60&d=retro&r=g)

### 󠀁[Works perfeclty!](https://wordpress.org/support/topic/works-perfeclty-2/)󠁿

 [jubilo](https://profiles.wordpress.org/jubilo/) 7. Mai 2022 1 reply

Works perfeclty!

 [ Read all 1 review ](https://wordpress.org/support/plugin/dh-rename-uploaded-files/reviews/)

## Contributors & Developers

“DH – Rename Uploaded Files” is open source software. The following people have 
contributed to this plugin.

Contributors

 *   [ Dannie Herdyawan ](https://profiles.wordpress.org/k0z3y/)

[Translate “DH – Rename Uploaded Files” into your language.](https://translate.wordpress.org/projects/wp-plugins/dh-rename-uploaded-files)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/dh-rename-uploaded-files/),
check out the [SVN repository](https://plugins.svn.wordpress.org/dh-rename-uploaded-files/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/dh-rename-uploaded-files/)
by [RSS](https://plugins.trac.wordpress.org/log/dh-rename-uploaded-files/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 4

### Added

 * Added security check to prevent direct file access
 * Added proper input validation for empty filenames
 * Added proper documentation for the main function with `@param` and `@return` 
   tags

### Changed

 * Restructured code using switch statement for better readability and maintainability
 * Optimized variable usage to avoid redundant operations
 * Improved code organization and indentation
 * Enhanced error handling for file renaming operations
 * Updated default case handling in the switch statement

### Fixed

 * Fixed potential issues with undefined array keys using null coalescing operator
 * Fixed code style to follow WordPress coding standards
 * Fixed potential edge cases in file extension handling

### Removed

 * Removed redundant global variable usage
 * Removed duplicate code blocks by consolidating logic

### Security

 * Added ABSPATH check to prevent direct file access
 * Improved sanitization of file names
 * Added proper escaping for file paths

### Performance

 * Optimized string operations
 * Reduced redundant function calls
 * Improved memory usage by reusing variables

### Compatibility

 * Maintained backward compatibility with all existing settings
 * Ensured compatibility with WordPress 6.5+
 * Tested with PHP 8.0+

### Developer Notes

 * The plugin now follows better coding standards
 * Improved filter hooks documentation
 * Better separation of concerns in the code

#### 3

 * Fix some bugs.

#### 2

 * Fix some bugs.
 * Compatible with WordPress 6.

#### 1.0.1

 * Fix some bugs.

#### 1.0.0

 * First release.

## Meta

 *  Version **4**
 *  Last updated **1 Jahr ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 6.0 or higher **
 *  Tested up to **6.6.10**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/dh-rename-uploaded-files/)
 * Tags
 * [files](https://de-ch.wordpress.org/plugins/tags/files/)[media](https://de-ch.wordpress.org/plugins/tags/media/)
   [rename](https://de-ch.wordpress.org/plugins/tags/rename/)[security](https://de-ch.wordpress.org/plugins/tags/security/)
   [upload](https://de-ch.wordpress.org/plugins/tags/upload/)
 *  [Advanced View](https://de-ch.wordpress.org/plugins/dh-rename-uploaded-files/advanced/)

## Ratings

 5 von 5 Sternen.

 *  [  1 5-Sterne-Rezension     ](https://wordpress.org/support/plugin/dh-rename-uploaded-files/reviews/?filter=5)
 *  [  0 4-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/dh-rename-uploaded-files/reviews/?filter=4)
 *  [  0 3-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/dh-rename-uploaded-files/reviews/?filter=3)
 *  [  0 2-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/dh-rename-uploaded-files/reviews/?filter=2)
 *  [  0 1-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/dh-rename-uploaded-files/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/dh-rename-uploaded-files/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/dh-rename-uploaded-files/reviews/)

## Contributors

 *   [ Dannie Herdyawan ](https://profiles.wordpress.org/k0z3y/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/dh-rename-uploaded-files/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.com/paypalme/DannieHerdyawan)