develop #3
@@ -27,7 +27,6 @@ export default async function FilePreviewPage({ searchParams }: FilePreviewPageP
|
||||
const title = params.title ?? "파일 미리보기";
|
||||
const images = parseImages(params.images);
|
||||
const src = params.src ?? "";
|
||||
console.log("src", src);
|
||||
const type = params.type ?? (images.length > 0 ? "image" : "pdf");
|
||||
|
||||
return (
|
||||
|
||||
@@ -45,7 +45,7 @@ export const GET = async (
|
||||
|
||||
if (action === "template" && second === "pdf" && third && fourth && slug.length === 4) {
|
||||
const result = await backApi.get<ArrayBuffer>(
|
||||
`/review/pdf/download/${encodeURIComponent(third)}/${encodeURIComponent(fourth)}`,
|
||||
`/review/template/pdf/${encodeURIComponent(third)}/${encodeURIComponent(fourth)}`,
|
||||
{ expectBinary: true }
|
||||
);
|
||||
const disposition = req.nextUrl.searchParams.get("disposition") === "inline" ? "inline" : "attachment";
|
||||
|
||||
Reference in New Issue
Block a user