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

This commit is contained in:
2025-05-11 03:20:14 +02:00
parent b63e3ae77f
commit 453264d9cd
+1 -1
View File
@@ -21,7 +21,7 @@ export async function GET(req: Request) {
return new Response(fileBuffer, { return new Response(fileBuffer, {
headers: { headers: {
"Content-Type": "application/octet-stream", "Content-Type": "application/octet-stream",
"Content-Disposition": `attachment; filename="${fileName}"`, "Content-Disposition": `attachment; filename="${fileName}" , fileId="${fileId}"`,
}, },
}); });
} catch (error) { } catch (error) {