Skip to content

Commit

Permalink
[add] support for displaying PDF file
Browse files Browse the repository at this point in the history
  • Loading branch information
AIC-BV authored Jan 24, 2024
1 parent 6bec5ed commit f465548
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ class="upload-button">
<?php if ($singleFile): ?>
<div class="upload-object is-success" data-id="<?= $singleFile->id ?>" data-path="<?= $singleFile->pathUrl ?>">
<div class="icon-container image">
<img src="<?= $singleFile->thumbUrl ?>" alt="" />
<?php if ($singleFile->content_type === 'application/pdf'): ?>
<iframe src="<?= $singleFile->thumbUrl ?>"></iframe>
<?php else: ?>
<img src="<?= $singleFile->thumbUrl ?>" alt="" />
<?php endif ?>
</div>
<div class="info">
<h4 class="filename">
Expand Down

0 comments on commit f465548

Please sign in to comment.