Browse Source

mimetype condition merged

Signed-off-by: Sangramsinh Desai <sangramsinh.desai@t-systems.com>
Signed-off-by: sangramsinh.desai@t-systems.com <sangramsinh.desai@t-systems.com>
tags/v23.0.0beta1
sangramsinh.desai@t-systems.com 2 years ago
parent
commit
4d7b780c73
1 changed files with 11 additions and 0 deletions
  1. 11
    0
      apps/files_sharing/templates/public.php

+ 11
- 0
apps/files_sharing/templates/public.php View File

@@ -72,6 +72,17 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
<?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">

Loading…
Cancel
Save