error=$_FILES[$name]['error']; $this->value=$_FILES[$name]['name']; $this->file=$_FILES[$name]['tmp_name']; } public function getTmpPath() { if ($this->error > 0) throw new UploadException("Upload failure", $this->error); return $this->file; } }