updated file name prefixes
This commit is contained in:
@@ -41,7 +41,7 @@ export default async function ApiProxy(req, res) {
|
||||
incidentID +
|
||||
")?$select=ticketnumber,title,pinswg_appealcasetype";
|
||||
|
||||
console.log(WEBAPI_URL + queryUrl + hashAPIPath(queryUrl));
|
||||
//console.log(WEBAPI_URL + queryUrl + hashAPIPath(queryUrl));
|
||||
|
||||
return axios
|
||||
.get(
|
||||
|
||||
@@ -32,8 +32,7 @@ ApiProxy.get(async (req, res) => {
|
||||
|
||||
res.setHeader(
|
||||
"content-disposition",
|
||||
"attachment; filename=" +
|
||||
decodeURI(blobName.slice(blobName.indexOf("_") + 1))
|
||||
"attachment; filename=" + decodeURI(blobName)
|
||||
);
|
||||
return res.status(200).send(downloaded);
|
||||
} else {
|
||||
|
||||
@@ -158,8 +158,15 @@ export default async function handler(req, res) {
|
||||
}
|
||||
);
|
||||
|
||||
let newFileListArr = blobProgress.filesList.concat(
|
||||
appealBodyObj.filesList[0]
|
||||
let newFileListArr = [];
|
||||
appealBodyObj.filesList.hasOwnProperty("value")
|
||||
? (newFileListArr = blobProgress.filesList.concat(
|
||||
appealBodyObj.filesList.value[0]
|
||||
))
|
||||
: (newFileListArr = blobProgress.filesList);
|
||||
|
||||
newFileListArr = newFileListArr.filter(
|
||||
(value) => Object.keys(value).length !== 0
|
||||
);
|
||||
|
||||
Object.assign(blobProgress, {
|
||||
|
||||
Reference in New Issue
Block a user