TagSpaces is an offline, open source, document manager with tagging support
correcting download functionality in web version
Ilian Sapundshiev543e0d63853a
diff --git a/app/components/EntryContainer.js b/app/components/EntryContainer.jsindex 1939dc515..e94af73f6 100644--- a/app/components/EntryContainer.js+++ b/app/components/EntryContainer.js@@ -56,7 +56,7 @@ import {extractFileExtension,extractTagsAsObjects,baseName,- extractFileNameWithoutExt,+ extractFileName,extractDirectoryName} from '../utils/paths';import { buffer } from '../utils/misc';@@ -694,7 +694,7 @@ class EntryContainer extends React.Component<Props, State> {const { currentEntry } = this.state;const downloadLink = document.getElementById('downloadFile');const entryName = `${baseName(currentEntry.path)}`;- const fileName = extractFileNameWithoutExt(entryName);+ const fileName = extractFileName(entryName);if (downloadLink) {if (AppConfig.isWeb) {@@ -708,7 +708,7 @@ class EntryContainer extends React.Component<Props, State> {downloadLink.setAttribute('href', currentEntry.url);}- downloadLink.setAttribute('download', fileName); //+ downloadLink.setAttribute('download', fileName);downloadLink.click();}}}