The /file/virusscan Robot

Transloadit gives its customers the power to reject, or direct files against different encoding steps.

The /file/virusscan Robot rejects millions of trojans, viruses, malware & other malicious threats before they reach your platform.

Parameters

Name Type Default Description
error_on_decline Boolean false If this is set to true and one or more files are declined, the Assembly will be stopped and marked with an error.
error_msg String "One of your files was declined" This is the error message shown to your users (such as by the jQuery SDK) when a file is declined and error_on_decline is set to true.

Example use cases

Our /file/virusscan Robot can be used in combination with other Robots, to create powerful workflows unique to your use case.
Here are a few example scenarios, and the required the Assembly Instructions to implement them.
You can also try demos of these examples right here, live on our website.

Automatically reject virus-infected files with an error

{
  "steps": {
    "safe": {
      "use": ":original",
      "robot": "/file/virusscan",
      "error_on_decline": true
    },
    "store": {
      "robot": "/s3/store",
      "use": "safe",
      "key": "YOUR_AWS_KEY",
      "secret": "YOUR_AWS_SECRET",
      "bucket": "YOUR_S3_BUCKET"
    }
  }
}

Related blog posts

Over the years we wrote the following posts about Our /file/virusscan robot on our blog:

Did you know?

You can easily combine Robots to create powerful workflows, unique to your business.
This is the power of Transloadit.