fix: include fileId in Content-Disposition header for file downloads

This commit is contained in:
ZareMate 2025-05-11 03:20:14 +02:00
parent b63e3ae77f
commit 453264d9cd
Signed by: zaremate
GPG Key ID: 369A0E45E03A81C3

View File

@ -21,7 +21,7 @@ export async function GET(req: Request) {
return new Response(fileBuffer, {
headers: {
"Content-Type": "application/octet-stream",
"Content-Disposition": `attachment; filename="${fileName}"`,
"Content-Disposition": `attachment; filename="${fileName}" , fileId="${fileId}"`,
},
});
} catch (error) {