Skip to content

Commit 3509d2a

Browse files
authored
Merge pull request #54 from eltociear/patch-1
🐞fix: update route.ts
2 parents 15ed70c + 612eb80 commit 3509d2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/api/file/upload/route.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const POST = async (req: Request, res: NextResponse) => {
5252
// const filePath = path.join(process.cwd(), "upload/", filename);
5353
return NextResponse.json({ Message: "Success", status: 200, filePath: `/api/file/${filename}`, fileName: filename });
5454
} catch (error) {
55-
console.log("Error occured ", error);
55+
console.log("Error occurred ", error);
5656
return NextResponse.json({ Message: "Failed", status: 500 });
5757
}
58-
};
58+
};

0 commit comments

Comments
 (0)