We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 550f472 commit 5268838Copy full SHA for 5268838
src/pages/upload.tsx
@@ -25,11 +25,11 @@ export const upload = new Elysia().use(userService).post(
25
if (body?.file) {
26
if (Array.isArray(body.file)) {
27
for (const file of body.file) {
28
- const santizedFileName = sanitize(file.name)
+ const santizedFileName = sanitize(file.name);
29
await Bun.write(`${userUploadsDir}${santizedFileName}`, file);
30
}
31
} else {
32
- const santizedFileName = sanitize(body.file["name"])
+ const santizedFileName = sanitize(body.file["name"]);
33
await Bun.write(`${userUploadsDir}${santizedFileName}`, body.file);
34
35
0 commit comments