public function run()
{
$input = $this->hasModel() ? Html::activeFileInput($this->model, $this->attribute, $this->options) : Html::fileInput($this->name, $this->value, $this->options);
echo $this->useDefaultButton ? $this->render('uploadButton', ['input' => $input]) : $input;
$this->registerClientScript();
}