protected function _beforeRender()
    {
        $this->_id = $this->getOption('id');
        if ($this->_form->hasRecord()) {
            $this->_object = $this->_form->getFileObjectName();
            $this->_objectId = $this->_form->getRecord()->getPk();
        }
        //jeśli wymuszony inny object
        if ($this->getOption('object')) {
            $this->_object = $this->getOption('object');
        }
        $this->_tempObject = 'tmp-' . $this->_object;
        $this->_createTempFiles();
        return $this;
    }