finally able to save the picture

This commit is contained in:
Chris Cochrun 2023-05-30 15:26:57 -05:00
parent 0cad38bb05
commit d857692815
2 changed files with 49 additions and 134 deletions

View file

@ -63,12 +63,14 @@
/* data.delete("image"); */
validate(data);
let obj = {};
data.forEach((value, key) => obj[key] = value);
/* console.log(JSON.stringify(data)); */
fetch("http://localhost:4242/health-form", {
method: "POST",
/* headers: {
* "Content-Type": "multipart/form-data",
* "Content-Type": "application/json",
* }, */
body: data
}).then((res) => {