filepath corrected

This commit is contained in:
2026-01-17 17:02:41 +00:00
parent 62385d1b7d
commit ac0f5fc46d

View File

@@ -4,6 +4,7 @@ import { join } from "path"
export default defineEventHandler(async (event) => {
const session = await getUserSession(event)
const conf = await useRuntimeConfig()
//const query = await getQuery(event)
// @ts-ignore
@@ -15,7 +16,8 @@ export default defineEventHandler(async (event) => {
if (file == undefined)
throw createError({ status: 400, message: "No file"})
const def_filepath = "/home/suricatingss/Projects/WebStorm/yt2mp3/server/fastapi_server/downloads";
//const def_filepath = "/home/suricatingss/Projects/WebStorm/yt2mp3/server/fastapi_server/downloads";
const def_filepath = conf.download_url
const filepath = join(def_filepath, userId.toString(), file.toString())
console.log(filepath)