From 25cd819f59fcef1d69786b0d20a5227b3501b68b Mon Sep 17 00:00:00 2001 From: Nathan Sullivan Date: Wed, 17 Sep 2003 11:46:37 +0000 Subject: [PATCH] added small paragraph for result of empty input file box git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@140505 c90b9560-bf6c-de11-be94-00142212c4b1 --- features/file-upload.xml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/features/file-upload.xml b/features/file-upload.xml index 112af0ed75..8b9254bd23 100644 --- a/features/file-upload.xml +++ b/features/file-upload.xml @@ -1,5 +1,5 @@ - + Handling file uploads @@ -214,6 +214,11 @@ print ""; Whatever the logic, you should either delete the file from the temporary directory or move it elsewhere. + + 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. + The file will be deleted from the temporary directory at the end of the request if it has not been moved away or renamed.