Skip to content

Commit

Permalink
Increase file size upload for dataset and document logs
Browse files Browse the repository at this point in the history
  • Loading branch information
andresgutgon committed Nov 15, 2024
1 parent 456c14f commit 1a1dcfa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apps/web/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const nextConfig = {
// different because in local environment we would need to upload the file to
// the nextjs server as we do now.
serverActions: {
bodySizeLimit: '15mb',
bodySizeLimit: '25mb',
},
},
webpack: (config) => {
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/actions/datasets/create.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const createDatasetAction = authProcedure
.instanceof(File)
.refine((file) => {
return !file || file.size <= MAX_UPLOAD_SIZE_IN_MB
}, `Your dataset must be less than ${MAX_SIZE}MB in size`)
}, `Your dataset must be less than ${MAX_SIZE}MB in size. You can split it into smaller files and upload them separately.`)
.refine(
(file) => file.type === 'text/csv',
'Your dataset must be a CSV file',
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ export const DELIMITERS_KEYS = [
'space',
'custom',
] as const
export const MAX_SIZE = 15
export const MAX_SIZE = 25
export const MAX_UPLOAD_SIZE_IN_MB = MAX_SIZE * 1024 * 1024

const userContentSchema = z.array(
Expand Down

0 comments on commit 1a1dcfa

Please sign in to comment.