When you updaload an image to the media folder it gets put in wwwroot/media/RandomName and the file it's selfseems to be ranamed to random letters. Is there some config setting to make umbraco reflect the folder names/stucter of the front end and keep the original image name?
I.E. If in the backoffice I make a folderin the meida section caleld "General Images" and upload "logo.webp" I would like the file to be located at wwwroot/media/General Images/logo.webp
j
Jemayn
01/27/2025, 12:52 PM
What makes the automatic folder names is Umbracos MediaPathScheme. Is is in place to avoid kolliding urls.
I'm fairly certain that by default image names are not changed, unless they are not url safe (eg has spaces), then they are made url safe.
You can change the mediapath scheme by setting your own: https://docs.umbraco.com/umbraco-cms/13.latest/extending/filesystemproviders#mediapath-scheme
But beware of collisions in the urls
k
kdx-perbol
01/27/2025, 1:22 PM
Out of curiousity, why do you want this? As a rule, you should use the Umbraco APIs to read/write media/storage (media service, storage provider, etc), so if you're building something directly against the file system it may (or may not) not sync with Umbraco.
m
Matthew Alexandros
01/28/2025, 12:20 AM
OCD mainly, all those folders being unorginzed really gets to me.
d
Dennis Pedersen
01/28/2025, 7:47 AM
why are you browsing the folders? also out of curiousity.