dosamigos\fileupload\BaseUpload::init PHP Method

init() public method

public init ( )
    public function init()
    {
        parent::init();
        $this->initI18N();
        if (empty($this->url)) {
            throw new InvalidConfigException('"url" cannot be empty.');
        }
        $this->clientOptions['url'] = Url::to($this->url);
    }

Usage Example

 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->fieldOptions['multiple'] = true;
     $this->fieldOptions['id'] = ArrayHelper::getValue($this->options, 'id');
     $this->options['id'] .= '-fileupload';
     $this->options['data-upload-template-id'] = $this->uploadTemplateId ?: 'template-upload';
     $this->options['data-download-template-id'] = $this->downloadTemplateId ?: 'template-download';
 }
All Usage Examples Of dosamigos\fileupload\BaseUpload::init