Link to photo page from selector

This commit is contained in:
Joscha 2025-03-03 20:19:55 +01:00
parent 5275a84dac
commit 81c994c8be
2 changed files with 3 additions and 1 deletions

View file

@ -139,7 +139,7 @@
form.append("image", blob);
form.append("caption", new Date().toLocaleString());
fetch("image", { method: "POST", body: form }).catch((error) => {
fetch("/api/image", { method: "POST", body: form }).catch((error) => {
console.error("Error uploading image:", error);
});
});