Re: MAX_FILE_SIZE not working with file uploads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux