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.
Does it have the same behaviour on a second server? It may be a problem of uname.
I tried here to upload one file, and to process it three time, overwriting the first file twice. The only file remaining is the last one, so the overwriting worked both times. See the excerpt of my log:
source is an uploaded file
[...]
- no auto_rename if same filename exists
- destination file details
file_dst_name : abcdef1.jpg
file_dst_pathname : ./test/abcdef1.jpg
- no overwrite checking
[...]
- no auto_rename if same filename exists
- destination file details
file_dst_name : abcdef1.jpg
file_dst_pathname : ./test/abcdef1.jpg
- no overwrite checking
[...]
- no auto_rename if same filename exists
- destination file details
file_dst_name : abcdef1.jpg
file_dst_pathname : ./test/abcdef1.jpg
- no overwrite checking
Is it what you do: upload one image, and overwrite it several times, calling process() several times? Can you paste here your resulting log? Do you have any errors (PHP errors when attempting to overwrite)?Reply
I tried here to upload one file, and to process it three time, overwriting the first file twice. The only file remaining is the last one, so the overwriting worked both times. See the excerpt of my log:
Is it what you do: upload one image, and overwrite it several times, calling process() several times? Can you paste here your resulting log? Do you have any errors (PHP errors when attempting to overwrite)?