class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
more info about the class
See all posts Reply
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.
So to do what you want, you need to determine the name beforehand, then forcing it with file_new_name_body for instance.
$handle->file_new_name_body did the job, it worked \(^_^)/ ~~ lala