check file size in server action
This commit is contained in:
@ -38,8 +38,7 @@
|
||||
{ key: 'report.status?.status', label: 'Bearbeitungsstatus' }
|
||||
]}
|
||||
onClick={(report) => (activeReport = report)}
|
||||
>
|
||||
</DataTable>
|
||||
/>
|
||||
|
||||
{#key activeReport}
|
||||
<BottomBar {strikeReasons} report={activeReport} />
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user