BR> That's what I was asking about, actually. How do I capture the filesize BR> without PHP throwing an error about the file being too big?
Do a filesize() on the tmp file after upload? If it exceeds whatever limit you think is fair, error nicely. Your limit and the one imposed by PHP don't have to be the same obviously.
That's what $_FILES['whatever']['size'] is for. Although if the file is too large, like over the php.ini max file size setting, I don't think you get to control what happens. That's what I thought was being discussed.
-- ---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for PHP Professionals – www.phparch.com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php