fix: file size limit to 15M (#431)

This commit is contained in:
Joel 2023-06-21 16:08:57 +08:00 committed by GitHub
parent 23ef2262bd
commit bb3cc6bba6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ const ACCEPTS = [
'.csv', '.csv',
] ]
const MAX_SIZE = 10 * 1024 * 1024 const MAX_SIZE = 15 * 1024 * 1024
const BATCH_COUNT = 5 const BATCH_COUNT = 5
const FileUploader = ({ const FileUploader = ({

View File

@ -23,10 +23,10 @@ const translation = {
title: 'Upload text file', title: 'Upload text file',
button: 'Drag and drop file, or', button: 'Drag and drop file, or',
browse: 'Browse', 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: { validation: {
typeError: 'File type not supported', typeError: 'File type not supported',
size: 'File too large. Maximum is 10MB', size: 'File too large. Maximum is 15MB',
count: 'Multiple files not supported', count: 'Multiple files not supported',
}, },
cancel: 'Cancel', cancel: 'Cancel',

View File

@ -23,10 +23,10 @@ const translation = {
title: '上传文本文件', title: '上传文本文件',
button: '拖拽文件至此,或者', button: '拖拽文件至此,或者',
browse: '选择文件', browse: '选择文件',
tip: '已支持 TXT、 HTML、 Markdown、 PDF、 XLSX每个文件不超过 10 MB。', tip: '已支持 TXT、 HTML、 Markdown、 PDF、 XLSX每个文件不超过 15 MB。',
validation: { validation: {
typeError: '文件类型不支持', typeError: '文件类型不支持',
size: '文件太大了,不能超过 10MB', size: '文件太大了,不能超过 15MB',
count: '暂不支持多个文件', count: '暂不支持多个文件',
}, },
cancel: '取消', cancel: '取消',