Virus Scan
Business Background
It is crucial to do a virus scan when files are uploaded to your website. This ensures that any files uploaded by users do not contain viruses or malware that could infect other users’ devices or compromise their security. Virus scans also prevent infected files from being stored on the web server, which could otherwise lead to the entire website being compromised or used to distribute malware.
Titan Solution
Titan Flow offers added protection and lets you scan file uploads to prevent the acceptance of contaminated files. You can add conditions to specify when and where you want files to be scanned.
If you have a Titan Web project that uploads files and wants to push them to Google Drive or Salesforce, you can now run a virus scan on the files in Titan Flow. The virus scan checks that the file extension is correct and that there are no malware or viruses.
When the virus scan runs, one of three things can happen:
- No viruses are found, and the file(s) are pushed to Salesforce or the file storage that you configured.
- Some viruses are found, and those are removed from the file upload element. You can configure actions for the clean files.
- All the files contain viruses. You can configure actions for the file upload failure.
How to Guide
Prerequisites:
- Create a custom file variable for this option that refers to the document.
- Create static variables for the safe and infected files.
- Click the + icon to add a node. The Add Node screen opens.

- Under Action, select the Virus Scan option and click the Next button. The Add Node/Virus Scan screen opens.
- Use the drop-down list to select the file variable(s).
- Use the drop-down lists to select the safe and infected static variables.
- Click the Next button.
- Add a tag as necessary and click the Insert button. The node is added.
- Add an action On Success, for instance, push to Salesforce or Google Drive.
- Add action(s) On Partial Success, such as pushing the clean files to Salesforce or Google Drive and configuring an email message warning the user that some file(s) contain a virus.
- Add an action On Fail, for instance, an email message warning the user that the file contains a virus.
An integration log (X out of Y files are infected) is added and the clean files are used for next actions.
The static variables are populated with the list of infected and safe files (separated by comma).
Create a Virus Scan in Titan Web.