Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-08-28 00:54:46

Steve
New Member
Registered: 2008-05-19
Posts: 7

All images uploaded have a URL associated with image name, how to...

I’m not liking how whenever I upload an image, it gets saved as image 1, then 2 for the next, etc. Is there anyway to change this so that when the file is uploaded, the URL is like: images/nameofpicture.jpg? Thanks for reading.

Offline

#2 2008-08-28 02:00:53

variaas
Plugin Author
From: Chicago
Registered: 2005-01-16
Posts: 402
Website

Re: All images uploaded have a URL associated with image name, how to...

It would require you to make a couple changes in Textpattern’s source code. This would be a difficult change to maintain, because it would be re-written on subsequent upgrades. I’d start by looking at txp_image.php in the textpattern/include folder.

Offline

#3 2008-08-29 09:58:34

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: All images uploaded have a URL associated with image name, how to...

And you’d have to add safeguards to avoid illegal filenames and duplicate filenames.

Offline

Board footer

Powered by FluxBB