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.
I have a upload script that I wrote using your upload.class to upload images and also create a thumbnail of each image.
After upgrading the upgrade.class to the latest version 0.22 the thumbnail (second process) failed with error "Can't carry on a process".
After crawling though your code, I found that at line 2904 there is a "move_uploaded_file" function call, this seems to move the temp file to the final dest filename. Obviously this moves the temp file, so when I try to create a thumbnail of the same upload the script errors because the temp file no longer exists.
I have changed the "move_uploaded_file" function call to a "copy" function to fix the problem.
After upgrading the upgrade.class to the latest version 0.22 the thumbnail (second process) failed with error "Can't carry on a process".
After crawling though your code, I found that at line 2904 there is a "move_uploaded_file" function call, this seems to move the temp file to the final dest filename. Obviously this moves the temp file, so when I try to create a thumbnail of the same upload the script errors because the temp file no longer exists.
I have changed the "move_uploaded_file" function call to a "copy" function to fix the problem.
Is this a bug?