upd: nama file saat upload di semua fitur mobile

This commit is contained in:
2025-08-29 14:36:48 +08:00
parent d7a90db6a7
commit e345e97023
4 changed files with 5 additions and 5 deletions

View File

@@ -227,7 +227,7 @@ export async function POST(request: Request) {
if (String(pair[0]).substring(0, 4) == "file") {
const file = body.get(pair[0]) as File
const fExt = file.name.split(".").pop()
const fName = file.name.replace("." + fExt, "")
const fName = decodeURIComponent(file.name.replace("." + fExt, ""))
const upload = await funUploadFile({ file: file, dirId: DIR.project })
if (upload.success) {
await prisma.projectFile.create({