260625_09_ENH: 파일명 zip처리

This commit is contained in:
2026-06-25 15:54:59 +09:00
parent 03e9e2c2f1
commit 5a336ed1b3
2 changed files with 3 additions and 3 deletions

View File

@@ -277,7 +277,7 @@ const PerformancePage = () => {
const reviewType = 1; const reviewType = 1;
try { try {
const buffer = await reviewOriginalByPerformanceMutation.mutateAsync({performanceId, reviewType}); const buffer = await reviewOriginalByPerformanceMutation.mutateAsync({performanceId, reviewType});
downloadBlob(buffer, getReviewOriginalDownloadName(performanceId, reviewType)); downloadBlob(buffer, `review-original-${performanceId}-${reviewType}.zip`, "application/zip");
} catch { } catch {
alert("다운로드할 모니터링 리뷰 파일을 찾을 수 없습니다."); alert("다운로드할 모니터링 리뷰 파일을 찾을 수 없습니다.");
} }

View File

@@ -67,8 +67,8 @@ export const GET = async (
return new NextResponse(result, { return new NextResponse(result, {
status: 200, status: 200,
headers: { headers: {
"Content-Type": "application/octet-stream", "Content-Type": "application/zip",
"Content-Disposition": `attachment; filename="${reviewFileName("review-original", second, third)}"`, "Content-Disposition": `attachment; filename="${reviewFileName("review-original", second, third)}.zip"`,
}, },
}); });
} }