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.
You can easily get the filesize of the destination file with:
$s = filesize($handle->file_dst_pathname);
it wouldn't be a good idea to include this in the class, as it is not strictly necessary, and requires some resources (to check the filesize on the file system).Reply
it wouldn't be a good idea to include this in the class, as it is not strictly necessary, and requires some resources (to check the filesize on the file system).