260625_09_ENH: 파일명 zip처리
This commit is contained in:
@@ -277,7 +277,7 @@ const PerformancePage = () => {
|
||||
const reviewType = 1;
|
||||
try {
|
||||
const buffer = await reviewOriginalByPerformanceMutation.mutateAsync({performanceId, reviewType});
|
||||
downloadBlob(buffer, getReviewOriginalDownloadName(performanceId, reviewType));
|
||||
downloadBlob(buffer, `review-original-${performanceId}-${reviewType}.zip`, "application/zip");
|
||||
} catch {
|
||||
alert("다운로드할 모니터링 리뷰 파일을 찾을 수 없습니다.");
|
||||
}
|
||||
|
||||
@@ -67,8 +67,8 @@ export const GET = async (
|
||||
return new NextResponse(result, {
|
||||
status: 200,
|
||||
headers: {
|
||||
"Content-Type": "application/octet-stream",
|
||||
"Content-Disposition": `attachment; filename="${reviewFileName("review-original", second, third)}"`,
|
||||
"Content-Type": "application/zip",
|
||||
"Content-Disposition": `attachment; filename="${reviewFileName("review-original", second, third)}.zip"`,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user