download link with filename from api
This commit is contained in:
@@ -663,18 +663,3 @@ export const getPortalModuelDetails = (token, appealType, caseReference) => {
|
||||
console.log("thiserror", error);
|
||||
});
|
||||
};
|
||||
|
||||
export const getFileFromCRM = (docRef) => {
|
||||
const weburl = "/api/proxy/documents/download/" + docRef;
|
||||
|
||||
console.log("proxy url", weburl);
|
||||
return axios
|
||||
.get(weburl, { responseType: "arraybuffer" })
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
return res;
|
||||
})
|
||||
.catch((error) => {
|
||||
console.log("thi serror", error);
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user