fix: increase maximum file size limit from 1MB to 10MB in FormUpload component

This commit is contained in:
Ardeman 2025-03-10 13:39:03 +08:00
parent ba83a6a025
commit e93c0a8464

View File

@ -19,7 +19,7 @@ export const FormUpload = () => {
const fetcher = useFetcher()
const [disabled, setDisabled] = useState(false)
const [error, setError] = useState<string>()
const maxFileSize = 1024 // 1MB
const maxFileSize = 10 * 1024 // 10MB
const formMethods = useRemixForm<TUploadSchema>({
mode: 'onSubmit',