diff --git a/app/api/mail/messages/[uid]/attachments/route.ts b/app/api/mail/messages/[uid]/attachments/route.ts index 479fa30..d04c1e8 100644 --- a/app/api/mail/messages/[uid]/attachments/route.ts +++ b/app/api/mail/messages/[uid]/attachments/route.ts @@ -28,7 +28,7 @@ export async function GET( return NextResponse.json({ error: "Ek bulunamadı" }, { status: 404 }); } - return new NextResponse(att.content, { + return new NextResponse(new Uint8Array(att.content), { headers: { "Content-Type": att.contentType, "Content-Disposition": `attachment; filename="${encodeURIComponent(filename)}"`,