url encode/decode correctly paths for hashed values

This commit is contained in:
2025-09-11 10:50:45 +01:00
parent c0dbaa2c3f
commit f8769d0bf1
4 changed files with 37 additions and 48 deletions
+8 -10
View File
@@ -1762,9 +1762,9 @@ export const deleteBlob = async (
"/api/file/deleteblob?container=" +
containerName +
"&casefolderID=" +
casefolderID +
encodeURIComponent(casefolderID) +
"&blobname=" +
blobName +
encodeURIComponent(blobName) +
deleteblobhash
);
return res.data;
@@ -1785,11 +1785,9 @@ export const deleteRepBlob = async (
"/api/file/deleteblob?container=" +
containerName +
"&casefolderID=" +
casefolderID +
"/" +
filenamePrefix +
encodeURIComponent(casefolderID + "/" + filenamePrefix) +
"&blobname=" +
blobName +
encodeURIComponent(blobName) +
deleteblobhash
);
return res.data;
@@ -1843,14 +1841,14 @@ export const getProgressFromBlob = async (containerName, casereference) => {
const res = await axios.get(
BASE_URL +
"/api/file/getprogressobjblob?container=" +
containerName +
encodeURIComponent(containerName) +
"&casefolderID=" +
casereference +
encodeURIComponent(casereference) +
hashAPIPath(
"/api/file/getprogressobjblob?container=" +
containerName +
encodeURIComponent(containerName) +
"&casefolderID=" +
casereference
encodeURIComponent(casereference)
)
);
return res.data;