public function registerFiles()
{
if (!isset($this->settings['multiple']) || $this->settings['multiple'] === false) {
if ($this->hasModel() && $this->model->{$this->attributeName} && $this->model->fileExists($this->attributeName)) {
$this->settings['files'][] = ['src' => $this->model->urlAttribute($this->attributeName), 'name' => $this->model->{$this->attributeName}, 'type' => $this->model->getMimeType($this->attributeName)];
}
}
}