feat(knowledgeBase): enhance file upload and dataset creation with abort support and improved UX
- Add AbortSignal support to uploadFile API for cancellable uploads - Implement custom onRemove callback in UploadFiles component with confirmation dialog - Add i18n translations for file removal confirmation and error messages - Update supported file types documentation to include IMAGE and MEDIA formats - Improve file removal UI with cursor pointer styling - Refactor getModelList API to remove unused type parameter - Add Form import and UploadFile type for better type safety in CreateDataset - Enhance error handling and user feedback for file operations
This commit is contained in:
@@ -293,7 +293,9 @@ export const en = {
|
||||
add: 'Add',
|
||||
addOption: 'Add Option',
|
||||
viewDetail: 'View Detail',
|
||||
confirmRemoveFile: 'Are you sure you want to remove this file?',
|
||||
deleteSuccess: 'Delete successfully',
|
||||
deleteFailed: 'Delete Failure',
|
||||
foldUp: 'Collapse',
|
||||
expanded: 'Expand',
|
||||
clickUploadIcon: 'click on the upload icon',
|
||||
@@ -468,7 +470,7 @@ export const en = {
|
||||
knowledgeBase: 'Knowledge Base',
|
||||
selectDataSource: 'Select Source',
|
||||
localFile: 'Local File',
|
||||
uploadFileTypes: 'Upload PDF, TXT, DOCX and other format files',
|
||||
uploadFileTypes: 'Upload PDF, TXT, DOCX, IMAGE, MEDIA and other format files',
|
||||
webLink: 'Web Link',
|
||||
webLinkPlaceholder:'Please enter',
|
||||
webLinkDesc: 'Only static links are supported. If the uploaded data shows as empty, the link may not be readable. One per line, with a maximum of {{count}} links at a time',
|
||||
@@ -476,6 +478,7 @@ export const en = {
|
||||
readStaticWebPage: 'Read static web page content as dataset',
|
||||
customText: 'Custom Text',
|
||||
customContent: 'Custom Content',
|
||||
createContentError: 'Failed to create custom content',
|
||||
manuallyInputText: 'Manually input a text as dataset',
|
||||
importTemplate: 'Template Import',
|
||||
importBackup: 'Backup Import',
|
||||
|
||||
Reference in New Issue
Block a user