Browse Source

Merge pull request #27674 from fstorz/hide-download-button-for-public-preview-of-audio-files

hide download button for public preview of audio files
tags/v23.0.0beta1
szaimen 2 years ago
parent
commit
654672f4a3
No account linked to committer's email address
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      apps/files_sharing/templates/public.php

+ 3
- 1
apps/files_sharing/templates/public.php View File

@@ -63,7 +63,9 @@ $maxUploadFilesize = min($upload_max_filesize, $post_max_size);
<?php else: ?>
<?php if ($_['previewEnabled'] && substr($_['mimetype'], 0, strpos($_['mimetype'], '/')) == 'audio'): ?>
<div id="imgframe">
<audio tabindex="0" controls="" preload="none" style="width: 100%; max-width: <?php p($_['previewMaxX']); ?>px; max-height: <?php p($_['previewMaxY']); ?>px">
<audio tabindex="0" controls="" preload="none" style="width: 100%; max-width: <?php p($_['previewMaxX']); ?>px; max-height: <?php p($_['previewMaxY']); ?>px"
<?php // See https://github.com/nextcloud/server/pull/27674?>
<?php if ($_['hideDownload']) { ?>controlsList="nodownload" <?php } ?>>
<source src="<?php p($_['downloadURL']); ?>" type="<?php p($_['mimetype']); ?>" />
</audio>
</div>

Loading…
Cancel
Save