Closed
Description
openedon Sep 13, 2023
I tried the following code:
import { Elysia, t } from "elysia";
const app = new Elysia()
.post("/", async ({ body: { data } }) => data, {
body: t.Object({
data: t.File({ maxSize: 100000 }),
}),
})
.listen(8000);
console.log(`app is running at ${app.server?.hostname}:${app.server?.port}`);
When i use postmen to test this upload file api, the server get crash when I upload some kind of file such as image, pdf.
Originally reported on Discord: bun server exist with SEGFAULT signal when upload file.
Activity