Double Image Thumbnail (eg. image_name_th_1.jpg)

See all posts Reply

Double Image Thumbnail (eg. image_name_th_1.jpg) new!
by kanakosoup, 13 years, 5 months ago
Hello...

I have minor problem with double image append (for thumbnails).

It's like this:
1. Upload a file name (eg. image01.jpg) and I will get a thumbnail (eg. image01_th.jpg).

2. Repeat process and I will get a thumbnail (eg. image01_th_1.jpg).

As you can see, to avoid overwriting, it will append an incrementing value after the _th append.

Question is...
How can I move the incrementing value like (eg. image01_1_th.jpg)

I love your class.Reply
Re: Double Image Thumbnail (eg. image_name_th_1.jpg) new!
by colin, 13 years, 5 months ago
The incrementing only works at the last step, if a file with the same name already exists.

So to do what you want, you need to determine the name beforehand, then forcing it with file_new_name_body for instance.Reply
Re: Double Image Thumbnail (eg. image_name_th_1.jpg) new!
by kanakosoup, 13 years, 5 months ago
Yes I want to move the incrementing value before my _th append.Reply
Re: Double Image Thumbnail (eg. image_name_th_1.jpg) new!
by kanakosoup, 13 years, 5 months ago
Hello..

$handle->file_new_name_body did the job, it worked \(^_^)/ ~~ lalaReply