finally able to save the picture
This commit is contained in:
parent
0cad38bb05
commit
d857692815
2 changed files with 49 additions and 134 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue