nathan Wed Sep 17 07:46:38 2003 EDT
Modified files: /phpdoc/en/features file-upload.xml Log: added small paragraph for result of empty input file box Index: phpdoc/en/features/file-upload.xml diff -u phpdoc/en/features/file-upload.xml:1.63 phpdoc/en/features/file-upload.xml:1.64 --- phpdoc/en/features/file-upload.xml:1.63 Sun Jul 27 12:12:53 2003 +++ phpdoc/en/features/file-upload.xml Wed Sep 17 07:46:37 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.63 $ --> +<!-- $Revision: 1.64 $ --> <chapter id="features.file-upload"> <title>Handling file uploads</title> @@ -213,6 +213,11 @@ linkend="features.file-upload.errors">error codes</link>. Whatever the logic, you should either delete the file from the temporary directory or move it elsewhere. + </simpara> + <simpara> + If no file is selected for upload in your form, PHP will return + $_FILES['userfile']['size'] as 0, and $_FILES['userfile']['tmp_name'] as + none. </simpara> <simpara> The file will be deleted from the temporary directory at the end