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
if ($handle->uploaded) { $handle->file_max_size = '50';
Can you please provide an example on how to restrict the upload if it is above a certain size?
I do this after the $handle->uploaded (im not sure if this is correct), however i get an exception thrown:
/upload.class.php(3036): unlink('73278a4a86960ee...')
My code is as follows:
Best regards, Ben.