TagSpaces is an offline, open source, document manager with tagging support
fix Upload files with dnd in web
Stanimirb8f5a3cf39b2
diff --git a/src/renderer/components/TargetFileBox.tsx b/src/renderer/components/TargetFileBox.tsxindex 45f3eec81..395aaa88b 100644--- a/src/renderer/components/TargetFileBox.tsx+++ b/src/renderer/components/TargetFileBox.tsx@@ -79,6 +79,8 @@ function TargetFileBox(props: Props) {}dispatch(AppActions.resetProgress());openFileUploadDialog();+ const localLocation = findLocalLocation();+ const sourceLocationId = localLocation ? localLocation.uuid : undefined;return uploadFilesAPI(files,currentDirectoryPath,@@ -86,7 +88,7 @@ function TargetFileBox(props: Props) {true,false,undefined,- findLocalLocation().uuid,+ sourceLocationId,).then((fsEntries: Array<TS.FileSystemEntry>) => {const actions: TS.EditMetaAction[] = fsEntries.map((entry) => ({