Bedarfsausweis Rechnung + Datenblatt

This commit is contained in:
Moritz Utcke
2023-05-09 20:30:44 +04:00
parent e2d742e069
commit 724f3ff546
25 changed files with 934 additions and 531 deletions

View File

@@ -58,6 +58,13 @@
const dataURL = canvas.toDataURL("image/jpeg", 0.75);
images.push({ ...file, data: dataURL as string } as (File & { data: string }));
fetch("/api/image", {
method: "PUT",
body: JSON.stringify({
data: dataURL,
name: file.name
})
})
images = images;
if (i == (Math.min(files.length, max) - 1)) {