vrana Fri Mar 23 17:37:48 2007 UTC
Modified files: /phpdoc/en/features file-upload.xml Log: MAX_FILE_SIZE is not checked by browsers (bug #40387) http://cvs.php.net/viewvc.cgi/phpdoc/en/features/file-upload.xml?r1=1.89&r2=1.90&diff_format=u Index: phpdoc/en/features/file-upload.xml diff -u phpdoc/en/features/file-upload.xml:1.89 phpdoc/en/features/file-upload.xml:1.90 --- phpdoc/en/features/file-upload.xml:1.89 Tue Nov 14 13:01:32 2006 +++ phpdoc/en/features/file-upload.xml Fri Mar 23 17:37:48 2007 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.89 $ --> +<!-- $Revision: 1.90 $ --> <chapter id="features.file-upload"> <title>Handling file uploads</title> @@ -65,8 +65,7 @@ </para> <para> The <literal>MAX_FILE_SIZE</literal> 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. + precede the file input field, and its value is the maximum filesize accepted by PHP. 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.