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 3097bf7 commit ba384e0Copy full SHA for ba384e0
server.ts
@@ -16,6 +16,13 @@ await mkdir("uploads", { recursive: true });
16
app.use(
17
fileUpload({
18
createParentPath: true,
19
+ limits: {
20
+ fields: 100,
21
+ files: 1,
22
+ fileSize: 20 * 1048576,
23
+ parts: 100,
24
+ },
25
+ abortOnLimit: true,
26
useTempFiles: true,
27
tempFileDir: "uploads/",
28
}),
0 commit comments