Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
#1 2013-04-01 17:25:53
- raminrahimi
- Member
- From: India
- Registered: 2013-03-19
- Posts: 278
Change image names
When I upload any image, automatically it’s name become like: 1.jpg, 2.jpg, 3.jpg, etc…
So if a person want to download all my images, he/she can easily can type the numbers and the images will download.
But I want to assign some different thing like: if i upload a file (name.jpg) it should become to images folder to that name,
like: images/name.jpg
Offline
Re: Change image names
Unfortunately, whether you like or not, Textpattern does that renaming. It’s an old feature intended to avoid collisions and make referencing, in term of code, easier. Not that it has really helped with either, really. The bad thing is, that’s how it is going to work and there is no feature support for changing that behavior.
If you do want access images using a named URL, see Image name instead ID in html topic. The topic contains URL rewriting directions that could be used to archive alternative URL structures, ones that contain the image name instead of just the ID. But, as with any other freely constructed, unverified URL, there are some cons. Plus, it doesn’t really prevent accessing the images using the ID at all.
Offline
Pages: 1