Repository navigation
new plugin: Random Image Filenames for Uploads #1300
Climbatiz
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Random Image Filenames
This plugin automatically renames uploaded images to random 32-character hexadecimal filenames while preserving their original extensions.
Supports JPG, JPEG, PNG, GIF, and WebP.
Works in any upload directory; no paths or drive letters need to be configured.
Leaves non-image uploads unchanged.
Updates the upload event's filename and URI so the upload response can use the new link.
Uses synchronous renaming to ensure the filename is updated before the upload event finishes processing.
Tested with HFS v3.4.0-beta3.
Save Plugin.js inside HFS's Plugins folder
plugin.js
All reactions