feat: update video file extensions and clean up code formatting in file upload settings

v3.2
wxg0103 2025-10-22 15:00:48 +08:00
parent b36e8f5350
commit 678122fe9e
3 changed files with 20 additions and 18 deletions

View File

@ -403,7 +403,7 @@ const upload = ref()
const imageExtensions = ['JPG', 'JPEG', 'PNG', 'GIF', 'BMP'] const imageExtensions = ['JPG', 'JPEG', 'PNG', 'GIF', 'BMP']
const documentExtensions = ['PDF', 'DOCX', 'TXT', 'XLS', 'XLSX', 'MD', 'HTML', 'CSV'] const documentExtensions = ['PDF', 'DOCX', 'TXT', 'XLS', 'XLSX', 'MD', 'HTML', 'CSV']
const videoExtensions: any = ['MP4', 'MOV', 'AVI'] const videoExtensions: any = ['MP4', 'AVI', 'MKV', 'MOV', 'FLV', 'WMV']
const audioExtensions = ['MP3', 'WAV', 'OGG', 'AAC', 'M4A'] const audioExtensions = ['MP3', 'WAV', 'OGG', 'AAC', 'M4A']
const otherExtensions = ref(['PPT', 'DOC']) const otherExtensions = ref(['PPT', 'DOC'])

View File

@ -523,6 +523,8 @@ function chatMessage(chat?: any, problem?: string, re_chat?: boolean, other_para
: [], : [],
audio_list: audio_list:
other_params_data && other_params_data.audio_list ? other_params_data.audio_list : [], other_params_data && other_params_data.audio_list ? other_params_data.audio_list : [],
video_list:
other_params_data && other_params_data.video_list ? other_params_data.video_list : [],
other_list: other_list:
other_params_data && other_params_data.other_list ? other_params_data.other_list : [], other_params_data && other_params_data.other_list ? other_params_data.other_list : [],
}, },

View File

@ -242,7 +242,7 @@ const InputRef = ref<InputInstance>()
const documentExtensions = ['TXT', 'MD', 'DOCX', 'HTML', 'CSV', 'XLSX', 'XLS', 'PDF'] const documentExtensions = ['TXT', 'MD', 'DOCX', 'HTML', 'CSV', 'XLSX', 'XLS', 'PDF']
const imageExtensions = ['JPG', 'JPEG', 'PNG', 'GIF'] const imageExtensions = ['JPG', 'JPEG', 'PNG', 'GIF']
const audioExtensions = ['MP3', 'WAV', 'OGG', 'ACC', 'M4A'] const audioExtensions = ['MP3', 'WAV', 'OGG', 'ACC', 'M4A']
const videoExtensions: any = ['MP4', 'MOV', 'AVI'] const videoExtensions: any = ['MP4', 'AVI', 'MKV', 'MOV', 'FLV', 'WMV']
const form_data = ref({ const form_data = ref({
maxFiles: 3, maxFiles: 3,