Elxis CMS Forum
Support => General => Topic started by: kyomar on May 24, 2025, 12:41:09
-
Hello Elxis team, it's been a while since my last post. That's an indication how good Elxis is, means very stable.
I want to change image file names but after renaming the image, it can't be selected (select image) in articles (not listed although visible in Media Manager, Articles). Same if I upload an image within Media Manager. If I use Upload image in the article, the filename changes into articlexx (xx = article id). Is this normal behavior? I would like to be able to keep/control the filenames.
Thanks for your help!
-
Elxis does not changes file names!
For security, Elxis does not allow having files with names containing non-latin characters, special symbols or empty spaces.
The acceptable characters when uploading an article image are the following: a-zA-Z0-9-_
If an other character is found it will be removed from the filename.
So, if you update this file: hello-(world!).jpg Elxis will remove not allowed characters and keep this: hello-world.jpg
If all characters are not acceptable (like all characters in Greek) then Elxis will create a name like this: article34.jpg, or this: articleimage45902.jpg
Rename your files properly before you upload them into Elxis to have a good SEO file name.
Also article images are special ones. For each image you upload Elxis creates a thumbnail and a medium scale image. So, only such images are visible in image selection box when you add/edit an article.
-
Thank you very much datahell for your fast and detailed reply - much appreciated.
The file name is accommodation_koyuki_floor2.jpg. So it should be okay but still it is being changed to article34.jpg. In the media manager I can upload the new image and see it but cannot select it in article because it didn't create thumbnails. If I upload the new image in the article, it always changes to article34.jpg. What am I missing? Do I first have to delete the old image article.34.jpg?
-
It is been renamed because there is already a file with the same name in upload folder.
DO NOT upload article's main images from media manager. They will not be treated as such and not be displayed in image selection when you edit an article. You must upload them from article editing page. Articles images are special ones. Do not upload manually files in media/images/articles/ from media manager! Similar for media/images/categories/ and all built-in folders. Create new folders to place your custom files.
-
Thanks datahell - got it. All is working now, still learning.