Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix(web): use public-memory download route

AmanRajSinghMourya34179a610156
diff --git a/web/packages/gallery/services/download.ts b/web/packages/gallery/services/download.ts
index e772b02d79..ca8d97a5e1 100644
--- a/web/packages/gallery/services/download.ts
+++ b/web/packages/gallery/services/download.ts
@@ -951,10 +951,10 @@ const publicMemory_downloadFile = async (
const { accessToken } = credentials;
const params = new URLSearchParams({ accessToken });
return fetch(
- `${customOrigin}/public-memory/files/${file.id}?${params.toString()}`,
+ `${customOrigin}/public-memory/files/download/${file.id}?${params.toString()}`,
);
} else {
- return fetch(await apiURL(`/public-memory/files/${file.id}`), {
+ return fetch(await apiURL(`/public-memory/files/download/${file.id}`), {
headers: authenticatedPublicMemoryRequestHeaders(credentials),
});
}