Link to photo page from selector
This commit is contained in:
parent
5275a84dac
commit
81c994c8be
2 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue