Hello @jorgeferreira,
I think this cannot be turned off.. MIght be.. but you need to work with vars.filename and use js and shell script to rename file if needed.
//vars.filename = "atach1_29509ulkjflr390ru.pdf"
var matches = vars.filename.match(/([^_]+)(?=_)(_.+\.([^.]+))/);
if (matches && matches.length === 4) {
var fileBaseName = matches[1],
extension = matches[3],
fileName = fileBaseName + "." + extension;
logInfo("Filename:", fileName); // This will output: Filename: atach1.pdf
try{
//in case you use linux based OS
execCommand('mv "/path/to/your/'+vars.filename + ', "/path/to/your/'+ filename+'"', true);
}catch(e){
//handle error
}
}
EDIT: I have not checked if vars.filename contains path as well. but if it does then you would change the code a bit to extract path, filename and extension.
Marcel Szimonisz
MarTech Consultant
for more tips visit my blog
https://www.martechnotes.com/