Skip to content

Commit

Permalink
feat: update s3 package config and remove filename from params (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
surajrai-dzango committed Sep 1, 2023
1 parent 3d24b17 commit 0c076cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/s3/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ declare module "@dzangolab/fastify-config" {
interface ApiConfig {
s3: {
accessKey: string;
bucket: string | Record<string, string>;
endPoint?: string;
fileSizeLimit?: number;
forcePathStyle?: boolean;
secretKey: string;
region?: string;
Expand Down
2 changes: 1 addition & 1 deletion packages/s3/src/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const plugin = async (
addToBody: true,
sharedSchemaId: "fileSchema",
limits: {
fileSize: Number.POSITIVE_INFINITY,
fileSize: config.s3.fileSizeLimit || Number.POSITIVE_INFINITY,
},
});

Expand Down

0 comments on commit 0c076cf

Please sign in to comment.