getting the progress from blob storage

This commit is contained in:
2022-08-02 09:27:47 +01:00
parent c66f8af327
commit ad8b49abcf
6 changed files with 88 additions and 30 deletions
+18
View File
@@ -1154,3 +1154,21 @@ export const downloadBlob = (containerName, blobName) => {
console.log("this serror", error);
});
};
export const getProgressFromBlob = async (containerName) => {
console.log("cont:", containerName);
try {
const res = await axios.get(
BASE_URL +
"/api/file/getprogressobjblob?container=" +
containerName.toLowerCase() +
hashAPIPath(
"/api/file/getprogressobjblob?container=" +
containerName.toLowerCase()
)
);
return res.data;
} catch (error) {
console.log("this serror", error);
}
};