Skip to content

Commit

Permalink
chore: limit file max size
Browse files Browse the repository at this point in the history
  • Loading branch information
nichenqin committed Aug 27, 2024
1 parent a65364a commit 4fc4762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/backend/src/modules/file/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class FileService {
type: "multipart/form-data",
body: t.Object({
name: t.String(),
file: t.File(),
file: t.File({ maxSize: "100m" }),
}),
},
)
Expand Down

0 comments on commit 4fc4762

Please sign in to comment.