Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
EDC:
Download extensions for Elxis CMS
.
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
Image uploads, change file names [solved]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Image uploads, change file names [solved] (Read 3783 times)
kyomar
Full Member
Posts: 161
Image uploads, change file names [solved]
«
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!
«
Last Edit: May 28, 2025, 02:35:39 by kyomar
»
Logged
datahell
Elxis Team
Hero Member
Posts: 10413
Re: Image uploads, change file names
«
Reply #1 on:
May 25, 2025, 21:08:06 »
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.
«
Last Edit: May 25, 2025, 21:11:11 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
kyomar
Full Member
Posts: 161
Re: Image uploads, change file names
«
Reply #2 on:
May 26, 2025, 02:01:17 »
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?
«
Last Edit: May 26, 2025, 02:03:21 by kyomar
»
Logged
datahell
Elxis Team
Hero Member
Posts: 10413
Re: Image uploads, change file names
«
Reply #3 on:
May 26, 2025, 19:12:09 »
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.
«
Last Edit: May 26, 2025, 19:15:46 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
kyomar
Full Member
Posts: 161
Re: Image uploads, change file names
«
Reply #4 on:
May 28, 2025, 02:34:48 »
Thanks datahell - got it. All is working now, still learning.
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
General
(Moderators:
Ivan Trebješanin
,
Farhad Sakhaei
) »
Image uploads, change file names [solved]