Skip to content

Commit

Permalink
Add support for PDF 'image'
Browse files Browse the repository at this point in the history
See #990
  • Loading branch information
AIC-BV authored Oct 18, 2023
1 parent 8f7c656 commit a16a5fb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion modules/backend/formwidgets/FileUpload.php
Original file line number Diff line number Diff line change
Expand Up @@ -505,7 +505,13 @@ protected function decorateFileAttributes($file)
}

$file->pathUrl = $path;
$file->thumbUrl = $thumb;
switch($file->extension) {
case 'pdf':
$file->thumbUrl = 'https://avatars.githubusercontent.com/u/7253840?v=4';
break;
default:
$file->thumbUrl = $thumb;
}

return $file;
}
Expand Down

0 comments on commit a16a5fb

Please sign in to comment.