S3 Object Storage

This commit is contained in:
Moritz Utcke
2025-03-18 18:25:24 -03:00
parent e01de6f03e
commit 8d73143932
13 changed files with 336 additions and 102 deletions

View File

@@ -157,7 +157,7 @@ export function getAusweisartFromUUID(uid: string): Enums.Ausweisart | null {
}
export type UnterlageClient = Omit<Unterlage, "id" | "aufnahme_id">
export type BildClient = Omit<Bild, "id" | "aufnahme_id">
export type BildClient = Omit<Bild, "id" | "aufnahme_id" | "name">
export type ObjektKomplettClient = ObjektClient & {
aufnahmen: AufnahmeKomplettClient[]

View File

@@ -1,6 +1,6 @@
<script lang="ts">
import HelpLabel from "#components/labels/HelpLabel.svelte";
import type { Enums } from "#lib/client/prisma";
import type { Enums } from "#lib/client/prisma.js";
export let max: number = 2;
export let min: number = 1;
@@ -82,7 +82,8 @@
const { uid } = await api.bild.PUT.fetch({
data: dataURL,
kategorie
kategorie,
name: file.name
})
images.push({ uid, kategorie });