diff --git a/models/attachments.js b/models/attachments.js index 8cba250ab..fe89e83e1 100644 --- a/models/attachments.js +++ b/models/attachments.js @@ -162,14 +162,6 @@ if (Meteor.isServer) { } if (isValid && attachmentUploadExternalProgram) { - let args = { ...attachmentUploadExternalProgram.args }; - - for (let key in args) { - if (args[key] == "%file") { - args[key] = fileObj.path; - } - } - Promise.await(asyncExec(attachmentUploadExternalProgram.replace("{file}", '"' + fileObj.path + '"'))); isValid = fs.existsSync(fileObj.path);