upd: profile

Deskripsi:
- edit profile
- api image
- folder image user

No Issues
This commit is contained in:
amel
2024-08-29 15:50:04 +08:00
parent 9eb2b1e4af
commit 44ea8c6510
14 changed files with 181 additions and 132 deletions

View File

@@ -1,6 +0,0 @@
'use server'
import fs from 'fs'
export async function funUploadFile(fName: any, f: any) {
const filenya = Buffer.from(await f.arrayBuffer())
fs.writeFileSync(`./public/assets/file/${fName}`, filenya)
}