Skip to content

Commit 8c1aeae

Browse files
authored
fix: Manually adding file types to the workflow knowledge base cannot upload files after adding them in lowercase letters (#4498)
1 parent f6102b1 commit 8c1aeae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/components/dynamics-form/items/upload/LocalFileUpload.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ const accept = computed(() => {
130130
return (attrs.file_type_list || []).map((item: any) => '.' + item.toLowerCase()).join(',')
131131
})
132132
const file_type_list = computed(() => {
133-
return attrs.file_type_list || []
133+
return attrs.file_type_list.map((item: any) => item.toUpperCase()) || []
134134
})
135135
const formats = computed(() => {
136-
return (attrs.file_type_list || []).map((item: any) => item.toUpperCase()).join('')
136+
return file_type_list.value.join('')
137137
})
138138
const file_size_limit = computed(() => {
139139
return attrs.file_size_limit || 50

0 commit comments

Comments
 (0)