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
I wonder, why there isn’t an option for getting the filesize of the destination file. Any hint how to integrate this in your script in a fast way?
Thankls & best regards
Chris
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).
correto
round(filesize($handle->file_dst_pathname)/?)/ ?
1 mb.