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.
Output the log produced by the class to check whether it goes to that function or not. If you see cleanup in the log, it should delete the file.
But maybe it diesn't, because of permissions or other weird reason. To test that, remove the @ in front of the unlink() function, so that PHP will not suppress any eventual error message.Reply
$handle-> Clean();
I originally assumed it was deleting the uploaded files from the "test" folder from the comment
// we delete the temporary files
but on my server, all the images I upload and manipulate are still in the test folder. It can fill up mighty fast!
So what is it Clean is supposed to do?
But maybe it diesn't, because of permissions or other weird reason. To test that, remove the @ in front of the unlink() function, so that PHP will not suppress any eventual error message.