Home » HTTP » HTTP_Upload » Bug #6220
Error on determining uploaded files
Details
| Submitted | 2005-12-11 14:18 UTC |
|---|---|
| From | alpaxo at aiken dot com dot ua |
| Status | Bogus |
| Package | HTTP_Upload |
| PHP Version | Irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2005-12-11 14:18 UTC] alpaxo at aiken dot com dot ua
Description:
------------
// $Id: Upload.php,v 1.52 2005/10/10 13:04:08 wenz Exp $
Error in HTTP_Upload::_buildFiles() on determining uploaded files on l.446: $error = $this->isMissing(); If last file of
$this->post_files has zero size, then HTTP_Upload::isMissing return $this->raiseError('NO_USER_FILE');
HTTP_Upload::isMissing(l.519-529)
foreach ($this->post_files as $userfile => $value)
if (is_array($value['name'])) {
foreach ($value['name'] as $key => $val) {
$size += $value['size'][$key];
}
} else { //one file
$size = $value['size'];
$error = $value['error'];
}
}
Possible $size = $value['size'] need to be replaced with $size += $value['size'];
[2005-12-13 10:59 UTC] alpaxo at aiken dot com dot ua
sorry... it is my error...