Re[2]: [PHP] What does MAX_FILE_SIZE do?
| From: | Richard Davey | Date: | Fri, 09 Apr 2004 03:00:02 +0000 |
| Subject: | Re[2]: [PHP] What does MAX_FILE_SIZE do? | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182942@lists.php.net to get a copy of this message | ||
Hello Ben,
Friday, April 9, 2004, 3:54:44 AM, you wrote:
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.
--
Best regards,
Richard Davey
http://www.phpcommunity.org/wiki/296.html