use orignal file names
This commit is contained in:
parent
c0ac1929c5
commit
bfd6157df1
1 changed files with 1 additions and 1 deletions
|
|
@ -155,7 +155,7 @@ function getApplicantArchiveFileName(afile) {
|
||||||
const extension = sourceName.includes(".")
|
const extension = sourceName.includes(".")
|
||||||
? `.${sanitizeZipPathSegment(sourceName.split(".").slice(-1)[0], "file")}`
|
? `.${sanitizeZipPathSegment(sourceName.split(".").slice(-1)[0], "file")}`
|
||||||
: ""
|
: ""
|
||||||
const baseName = sanitizeZipPathSegment(afile.field_name ?? afile.file_name, "file")
|
const baseName = sanitizeZipPathSegment(afile.name, "file")
|
||||||
return `${baseName}${extension}`
|
return `${baseName}${extension}`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue