Skip to content

Commit

Permalink
fix: file size limit to 15M (#431)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamjoel authored Jun 21, 2023
1 parent 23ef226 commit bb3cc6b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion web/app/components/datasets/create/file-uploader/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const ACCEPTS = [
'.csv',
]

const MAX_SIZE = 10 * 1024 * 1024
const MAX_SIZE = 15 * 1024 * 1024
const BATCH_COUNT = 5

const FileUploader = ({
Expand Down
4 changes: 2 additions & 2 deletions web/i18n/lang/dataset-creation.en.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ const translation = {
title: 'Upload text file',
button: 'Drag and drop file, or',
browse: 'Browse',
tip: 'Supports txt, html, markdown, xlsx, and pdf. Max 10MB each.',
tip: 'Supports txt, html, markdown, xlsx, and pdf. Max 15MB each.',
validation: {
typeError: 'File type not supported',
size: 'File too large. Maximum is 10MB',
size: 'File too large. Maximum is 15MB',
count: 'Multiple files not supported',
},
cancel: 'Cancel',
Expand Down
4 changes: 2 additions & 2 deletions web/i18n/lang/dataset-creation.zh.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ const translation = {
title: '上传文本文件',
button: '拖拽文件至此,或者',
browse: '选择文件',
tip: '已支持 TXT、 HTML、 Markdown、 PDF、 XLSX,每个文件不超过 10 MB。',
tip: '已支持 TXT、 HTML、 Markdown、 PDF、 XLSX,每个文件不超过 15 MB。',
validation: {
typeError: '文件类型不支持',
size: '文件太大了,不能超过 10MB',
size: '文件太大了,不能超过 15MB',
count: '暂不支持多个文件',
},
cancel: '取消',
Expand Down

0 comments on commit bb3cc6b

Please sign in to comment.