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 am not sure why you have an error. In any case, the error 4 UPLOAD_ERR_NO_FILE means that no file has been uploaded. The class cannot do anything if no file has been uploaded, and is not even activated. Check if uploads work properly on your server., without the class. Then use the class.Reply
(Translated in HTML)