Display the correct file extension on download button
This commit is contained in:
@@ -235,6 +235,11 @@
|
||||
'/' .
|
||||
$expire;
|
||||
}
|
||||
|
||||
$fileExtension = "HEVC";
|
||||
if (str_contains($download->url, 'AV1')) {
|
||||
$fileExtension = "AV1";
|
||||
}
|
||||
@endphp
|
||||
<a href="{{ $downloadURL }}" wire:click="clicked({{ $download->id }})"
|
||||
download>
|
||||
@@ -249,7 +254,7 @@
|
||||
</svg>
|
||||
</div>
|
||||
<div class="flex flex-col text-center w-full">
|
||||
<p class="text-xs">HEVC MKV</p>
|
||||
<p class="text-xs">{{ $fileExtension }} MKV</p>
|
||||
</div>
|
||||
</button>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user