diff options
author | kartofen <mladenovnasko0@gmail.com> | 2022-08-29 19:01:20 +0300 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2022-08-29 19:01:20 +0300 |
commit | 8e4163e3f08e29f38fe87c59d8cfb91e0fa98063 (patch) | |
tree | 2b117f4bafa0a4d10252eef95ca868a247a081a1 /src/lib/image.ts | |
parent | 9d952483f250a97cbeab4061fa1c4e68341b330f (diff) |
everything works
Diffstat (limited to 'src/lib/image.ts')
-rw-r--r-- | src/lib/image.ts | 4 |
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, |