fix(web): update file type

This commit is contained in:
zhaoying
2026-03-19 20:19:30 +08:00
parent 1c3029f360
commit 7ec947189c

View File

@@ -2,7 +2,7 @@
* @Author: ZhaoYing * @Author: ZhaoYing
* @Date: 2026-03-05 * @Date: 2026-03-05
* @Last Modified by: ZhaoYing * @Last Modified by: ZhaoYing
* @Last Modified time: 2026-03-19 15:18:20 * @Last Modified time: 2026-03-19 20:19:14
*/ */
import { forwardRef, useImperativeHandle, useState } from 'react'; import { forwardRef, useImperativeHandle, useState } from 'react';
import { Form, InputNumber, Flex, Switch, Row, Col, Radio } from 'antd'; import { Form, InputNumber, Flex, Switch, Row, Col, Radio } from 'antd';
@@ -82,26 +82,25 @@ const defaultValues: FileUpload = {
"mp3", "mp3",
"wav", "wav",
"m4a", "m4a",
"ogg",
"flac"
], ],
document_enabled: false, document_enabled: false,
document_max_size_mb: 100, document_max_size_mb: 100,
document_allowed_extensions: [ document_allowed_extensions: [
"pdf", "pdf",
"docx", "docx",
"doc",
"xlsx", "xlsx",
"xls",
"txt", "txt",
"csv", "csv",
"json" "json",
"md",
], ],
video_enabled: false, video_enabled: false,
video_max_size_mb: 100, video_max_size_mb: 100,
video_allowed_extensions: [ video_allowed_extensions: [
"mp4", "mp4",
"mov", "mov",
"avi",
"webm"
], ],
max_file_count: 5, max_file_count: 5,
allowed_transfer_methods: 'both' allowed_transfer_methods: 'both'