check file size in server action
All checks were successful
deploy / build-and-deploy (/testvaro, /opt/website-test, website-test) (push) Successful in 21s
deploy / build-and-deploy (/varo, /opt/website, website) (push) Successful in 13s

This commit is contained in:
2025-06-21 21:54:01 +02:00
parent eb39cae44c
commit 94e9e83e93
4 changed files with 20 additions and 8 deletions

View File

@ -38,8 +38,7 @@
{ key: 'report.status?.status', label: 'Bearbeitungsstatus' }
]}
onClick={(report) => (activeReport = report)}
>
</DataTable>
/>
{#key activeReport}
<BottomBar {strikeReasons} report={activeReport} />

View File

@ -1,15 +1,12 @@
<script lang="ts">
import { popupState } from '@components/popup/Popup.ts';
import { allowedImageTypes, allowedVideoTypes } from '@util/media.ts';
// bindings
let containerElem: HTMLDivElement;
let hiddenFileInputElem: HTMLInputElement;
let previewDialogElem: HTMLDialogElement;
// consts
const allowedImageTypes = ['image/png', 'image/jpeg', 'image/webp', 'image/avif'];
const allowedVideoTypes = ['video/mp4', 'video/webm'];
// types
interface Props {
maxFilesBytes: number;