Re: max_file_size

From: Date: Tue, 12 Jul 2005 16:21:03 +0000
Subject: Re: max_file_size
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-218556@lists.php.net to get a copy of this message
Ahmed Saad wrote:
hi Sebastain, On 7/12/05, Sebastian <sebastian@broadbandgaming.net> wrote:
yet it waits for file to upload before error. I've been using php for serveral years and i cant remember ever getting this to work like the manual states.
Quoting the *php manual* "The MAX_FILE_SIZE hidden field (measured in bytes) must precede the file input field, and its value is the maximum filesize accepted. (((This is an advisory to the browser))), PHP also checks it. Fooling this setting on the browser side is quite easy, so never rely on files with a greater size being blocked by this feature. The PHP settings for maximum-size, however, cannot be fooled. This form element should always be used as it saves users the trouble of waiting for a big file being transferred only to find that it was too big and the transfer failed." In a nut-shell, it's just a hint to the "browser" that may or may NOT consider it. -ahmed it doesnt seem to work on IE or Firefox.. two of the most popular browsers..
this shoudn't even be in the manual then because if it doesnt work for these two browsers then i would consider it pointless to use.

« previous php.general (#218556) next »