View Single Post
Old June 4th, 2008, 10:25 PM   #1 (permalink)
ski-whiz
Member
Verified Customer
 
Join Date: Dec 2005
Posts: 118
Force gallery to rename

I've been trying to get the gallery to rename the image files all the time when there's an upload.

I've tried this with limited sucess: http://www.photopost.com/forum/vbgal...ndom-name.html


What seems to be happening is the filename is going through the random number generation twice. So I end up with a filename of "XXXXX_random_random.gif"... So that mod doesn't really work.

The wierd part of that, is that the thumbnail is created the way it should be. It's just the file name.

I was thinking, there should be a way to just toggle the logic..

If I take this line:

Code:
Content visible to verified customers only.
And remove change it to this:

Code:
Content visible to verified customers only.
Basically toggling the if exists line, it should auto generate a random name. However every method I try, it generates the name twice..

So when I upload a file "test.jpg", I end up with "test_544343_525348.jpg". It appears it's getting sent through it twice.

Is there an easy way to force the gallery to rename every upload??
ski-whiz is offline   Reply With Quote