ID: 14310 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: HTTP related Operating System: Linux PHP Version: 4.0.6 New Comment:
After looking at HTTP traffic for file upload POST requests, I would like to retract my question -- it is impossible to distinguish between empty files and files that do not exist on the client machine. Previous Comments: ------------------------------------------------------------------------ [2002-04-25 17:06:03] [EMAIL PROTECTED] Derick, I assume the change happened here: http://cvs.php.net/diff.php/php4/main/rfc1867.c?r1=1.86&r2=1.87 Why is it an error to upload an empty file, though? Thank you, Dmitri. ------------------------------------------------------------------------ [2001-12-01 16:56:10] [EMAIL PROTECTED] Fixed in CVS. You'll have to wait for version 4.2.0... Derick ------------------------------------------------------------------------ [2001-12-01 16:33:14] [EMAIL PROTECTED] When a zero-length file is uploaded, the temporary file is not created, and the appropriate variable is set to 'none'. This forces me into all sorts of hacks in my php code (can't use is_uploaded_file() and move_uploaded_file(), for instance), to give empty files special treatment. I think that *a file is a file*, and its size should not matter, as long as it is within limits. Many thanks, -- Arcady Genkin ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=14310&edit=1
