Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
mimetype condition merged
Signed-off-by: Sangramsinh Desai <[email protected]>
Signed-off-by: [email protected] <[email protected]>
  • Loading branch information
TSI-sangramdesai committed Sep 2, 2021
commit 4d7b780c737c48ca267233cc9fca131ccb5f708e
11 changes: 11 additions & 0 deletions apps/files_sharing/templates/public.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,17 @@
<?php else: ?>
<!-- Preview frame is filled via JS to support SVG images for modern browsers -->
<div id="imgframe"></div>
<?php if (isset($_['mimetype']) && strpos($_['mimetype'], 'image') === 0) { ?>
<div class="directDownload">
<div class="video-file-details">
<?php p($l->t('%s', [$_['filename']]))?> (<?php p($_['fileSize']) ?>)
</div>
<a href="<?php p($_['downloadURL']); ?>" id="downloadFile" class="button">
<span class="icon icon-download"></span>
<?php p($l->t('Download'))?>
</a>
</div>
<?php } ?>
<?php if(isset($_['mimetype'])){ ?>
<?php if (strpos($_['mimetype'], 'image') === 0) { ?>
<div class="directDownload">
Expand Down