Re: MAX_FILE_SIZE not working with file uploads

From: Date: Sun, 23 Sep 2007 04:44:49 +0000
Subject: Re: MAX_FILE_SIZE not working with file uploads
References: 1 2 3 4 5 6  Groups: php.general 
Request: Send a blank email to php-general+get-262383@lists.php.net to get a copy of this message
brian wrote:
Jeff Cohan wrote:
It seems that the server had to know the size of the file in order to know it exceeded MAX_FILE_SIZE. So how can my script find out the size?
Not at all. The user-agent is built to ignore files that exceed the MAX_FILE_SIZE value.
Ack! I meant, "The user-agent *should be* built to ignore ..." ie. MAX_FILE_SIZE is generally a client-side tool (and thus not to be relied upon too much) but will be honoured by PHP as well (if it does not exceed post_max_size in php.ini). brian

« previous php.general (#262383) next »