mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -05:00
zip files before download in file broswer
needs to be completly rewritten in the future but for now this is more secure
This commit is contained in:
@@ -55,11 +55,11 @@
|
||||
<div class="col col-md-12">
|
||||
<template>
|
||||
<div
|
||||
v-if="step.file.file.includes('.png') || step.file.file.includes('.jpg') || step.file.file.includes('.jpeg') || step.file.file.includes('.gif')">
|
||||
<b-img :src="step.file.file" fluid-grow></b-img>
|
||||
v-if="step.file.preview !== ''">
|
||||
<b-img :src="step.file.preview" fluid-grow></b-img>
|
||||
</div>
|
||||
<div v-else>
|
||||
<a :href="step.file.file" target="_blank"
|
||||
<a :href="step.file.file_download" target="_blank"
|
||||
rel="noreferrer nofollow">{{ $t("Download") }}
|
||||
{{ $t("File") }}</a>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user