upd: tambah task divisi

Deskripsi:
- tambah dropzone
- update struktur database

- create task

No Issuess
This commit is contained in:
amel
2024-08-16 15:55:09 +08:00
parent 9b0450c75e
commit ed12cc087a
12 changed files with 368 additions and 81 deletions

View File

@@ -0,0 +1,6 @@
'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)
}