fixed download link for share page

This commit is contained in:
2025-04-14 16:02:14 +02:00
parent 95392aa593
commit b4eb2b4657
3 changed files with 7 additions and 3 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import { promises as fs } from "fs";
export async function GET(req: Request) {
const url = new URL(req.url);
const fileId = url.searchParams.get("fileName");
const fileId = url.searchParams.get("fileId");
if (!fileId) {
return NextResponse.json({ error: "File id is required" }, { status: 400 });