For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > March 2007 > cvs: phpdoc /en/features file-upload.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/features file-upload.xml
Jakub Vrana

2007-03-23, 6:59 pm

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/phpdo...0&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.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com