aboutsummaryrefslogtreecommitdiff
path: root/src/lib/image.ts
diff options
context:
space:
mode:
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,