Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: issue with to short expiration date of signed urls

Ilian Sapundshievb796a02c9637
diff --git a/src/renderer/components/dialogs/LinkGeneratorDialog.tsx b/src/renderer/components/dialogs/LinkGeneratorDialog.tsx
index 1ea3c9813..9a77ad534 100644
--- a/src/renderer/components/dialogs/LinkGeneratorDialog.tsx
+++ b/src/renderer/components/dialogs/LinkGeneratorDialog.tsx
@@ -83,7 +83,7 @@ function LinkGeneratorDialog(props: Props) {
function setSignedLink() {
//if (switchLocationType) {
switchLocationTypeByID(props.locationId).then((currentLocationId) => {
- signedLink.current = PlatformIO.getURLforPath(
+ signedLink.current = PlatformIO.generateURLforPath(
path,
linkValidityDuration.current,
);
diff --git a/src/renderer/perspectives/grid/components/MainToolbar.tsx b/src/renderer/perspectives/grid/components/MainToolbar.tsx
index e4dc065a2..39f8d15a8 100644
--- a/src/renderer/perspectives/grid/components/MainToolbar.tsx
+++ b/src/renderer/perspectives/grid/components/MainToolbar.tsx
@@ -98,7 +98,7 @@ function MainToolbar(props: Props) {
const cleanedPath = entry.path.startsWith('/')
? entry.path.substr(1)
: entry.path;
- const url = PlatformIO.getURLforPath(cleanedPath);
+ const url = PlatformIO.generateURLforPath(cleanedPath, 900);
fetch(url)
.then((res) => res.blob()) // Gets the response and returns it as a blob
.then((blob) => {