Fix file upload

This commit is contained in:
2025-10-28 18:58:10 +01:00
parent c11d956ced
commit de06939b01
3 changed files with 19 additions and 4 deletions

View File

@@ -122,7 +122,8 @@ export const useFileOperations = (): UseFileOperationsResult => {
if (!currentWorkspace) return false;
try {
await uploadFile(currentWorkspace.name, targetPath || '', files);
// Default to '.' (root directory) if no target path is provided
await uploadFile(currentWorkspace.name, targetPath || '.', files);
notifications.show({
title: 'Success',