public function __construct($name, $target, $type = '*', $size = '2048')
{
if (is_array($name)) {
$this->instance = CUploadedFile::getInstance($name[0], $name[1]);
} else {
$this->instance = CUploadedFile::getInstanceByName($name);
}
$this->type = $type;
$this->target = $target;
$this->setSize($size);
}