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:
vabene1111
2022-07-04 14:39:53 +02:00
parent d9d0676bed
commit 690c486bb2
5 changed files with 255 additions and 70 deletions

View File

@@ -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>