Reply to Force image renaming to start at 1 and increment

Force image renaming to start at 1 and increment new!
by Jason, 17 years ago
I'm working on a form that submits 5 images, resizes and renames them...

I need the images to follow this naming convention: image_1.JPG | image_2.JPG | image_3.JPG | image_4.JPG | image_5.JPG

If i set the $handle->file_new_name_body = 'image'; the first image is called image.jpg then, the second image is image_1.jpg and so on...

Can someone please advise how I might be able to do this?Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important