aboutsummaryrefslogtreecommitdiff
path: root/src/lib/image.ts
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2022-08-29 19:01:20 +0300
committerkartofen <mladenovnasko0@gmail.com>2022-08-29 19:01:20 +0300
commit8e4163e3f08e29f38fe87c59d8cfb91e0fa98063 (patch)
tree2b117f4bafa0a4d10252eef95ca868a247a081a1 /src/lib/image.ts
parent9d952483f250a97cbeab4061fa1c4e68341b330f (diff)
everything works
Diffstat (limited to 'src/lib/image.ts')
-rw-r--r--src/lib/image.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/image.ts b/src/lib/image.ts
index c7d4d49..6ab20a5 100644
--- a/src/lib/image.ts
+++ b/src/lib/image.ts
@@ -20,8 +20,8 @@ export async function postImg(img: string) {
let filename = `${uuidV4()}.${fileExt}`;
//save file in this server
- writeFileSync(`dist/client/images/${filename}`, img_b64, "base64");
- // writeFileSync(`public/images/${filename}`, img_b64, "base64");
+ // writeFileSync(`dist/client/images/${filename}`, img_b64, "base64");
+ writeFileSync(`public/images/${filename}`, img_b64, "base64");
let data = {
'name': filename,