### What problem does this PR solve? feat: add file icon to table of FileManager #345 fix: modify datasetDescription ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@@ -103,14 +103,14 @@ export const useUploadFile = () => {
|
||||
const dispatch = useDispatch();
|
||||
|
||||
const uploadFile = useCallback(
|
||||
(file: UploadFile, parentId: string, path: string) => {
|
||||
(fileList: UploadFile[], parentId: string) => {
|
||||
try {
|
||||
return dispatch<any>({
|
||||
type: 'fileManager/uploadFile',
|
||||
payload: {
|
||||
file,
|
||||
file: fileList,
|
||||
parentId,
|
||||
path,
|
||||
path: fileList.map((file) => (file as any).webkitRelativePath),
|
||||
},
|
||||
});
|
||||
} catch (errorInfo) {
|
||||
|
||||
Reference in New Issue
Block a user