#18959 [NEW]: Non-existant file uploads return success error message
| From: | mikeharris at rogers dot com | Date: | Sat, 17 Aug 2002 20:52:38 +0000 |
| Subject: | #18959 [NEW]: Non-existant file uploads return success error message | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-17150@lists.php.net to get a copy of this message | ||
From: mikeharris@rogers.com
Operating system: Windows 98 SE
PHP version: 4.2.2
PHP Bug Type: HTTP related
Bug description: Non-existant file uploads return success error message
PHP v4.2.2 w/ Apache 1.3.22 on Windows 98 SE.
Re: Handling File Uploads
You can enter a path/filename that doesn't exist (or even gibberish) into
a HTML <INPUT TYPE="file"> control and PHP will assign the corresponding
$_FILES['foo']['error'] variable a value of 0, even though 0 indicates a
successful upload.
Since the file didn't exist on the client machine, it couldn't possibly be
uploaded to the server, but PHP creates a 0 byte temp file anyways.
Wouldn't it be more appropriate to assign the non-existant file upload an
error code of 4, since nothing was actually uploaded?
--
Edit bug report at http://bugs.php.net/?id=18959&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=18959&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=18959&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=18959&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=18959&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=18959&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=18959&r=support
Expected behavior: http://bugs.php.net/fix.php?id=18959&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=18959&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=18959&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=18959&r=globals