nodejs: fix max length (a06aa8c8b3)

This commit is contained in:
Sergey Linnik
2023-08-14 11:16:23 +03:00
parent 2fb011185a
commit 59c9061306

View File

@ -718,12 +718,12 @@ app.post('/track', async (req, res) => { // define a handler for tracking file c
if (isSubmitForm) {
// new file
if (newFileName) {
correctName = req.DocManager.getCorrectName(`${fileUtility.getFileName(fileName, true)}
-form${downloadExt}`, userAddress);
correctName = req.DocManager.getCorrectName(
`${fileUtility.getFileName(fileName, true)}-form${downloadExt}`, userAddress);
} else {
const ext = fileUtility.getFileExtension(fileName);
correctName = req.DocManager.getCorrectName(`${fileUtility.getFileName(fileName, true)}
-form${ext}`, userAddress);
correctName = req.DocManager.getCorrectName(
`${fileUtility.getFileName(fileName, true)}-form${ext}`, userAddress);
}
forcesavePath = req.DocManager.storagePath(correctName, userAddress);
} else {