Bug #14310: Uploaded empty files treated differently
| From: | a dot genkin at utoronto dot ca | Date: | Sat, 01 Dec 2001 21:33:14 +0000 |
| Subject: | Bug #14310: Uploaded empty files treated differently | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-72226@lists.php.net to get a copy of this message | ||
From: a.genkin@utoronto.ca
Operating system: Linux
PHP version: 4.0.6
PHP Bug Type: HTTP related
Bug description: Uploaded empty files treated differently
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 bug report at: http://bugs.php.net/?id=14310&edit=1