# Virus Scanning and Upload Filtering

Scan uploads for malware, reject NSFW or copyrighted images, and route files by size, type, or metadata — through one API.

[Get Started](/c/signup/)

[Get Started](/c/signup/)

[Documentation](/docs/robots.md#file-filtering)

No credit card needed · Cancel anytime

Uploaded files

![DSC\_08452\_retouched.jpg](/artificialintelligence/img/img2.webp?dpl=dpl_DM8JrFduDL1oLK4J3qc9o5gMffMy)DSC\_08452\_retouched.jpg

Approved

![photo\_001\_copy.jpg](/artificialintelligence/img/img4.webp?dpl=dpl_DM8JrFduDL1oLK4J3qc9o5gMffMy)photo\_001\_copy.jpg

Blocked

![IMG\_20260209\_152347.jpg](/artificialintelligence/img/img5.webp?dpl=dpl_DM8JrFduDL1oLK4J3qc9o5gMffMy)IMG\_20260209\_152347.jpg

Approved

![screenshot\_2026\_143022.png](/artificialintelligence/img/img6.webp?dpl=dpl_DM8JrFduDL1oLK4J3qc9o5gMffMy)screenshot\_2026\_143022.png

Approved

![IMG\_8452\_edited\_final.webp](/artificialintelligence/img/img8.webp?dpl=dpl_DM8JrFduDL1oLK4J3qc9o5gMffMy)IMG\_8452\_edited\_final.webp

Blocked

### Stop bad uploads

* **Virus scanning**
* **Unsafe content detection**
* **Reject files**
* **Quarantine suspicious files**
* **Filter images, videos, docs, and archives**
* **Publish only clean results**

Virus scanning

Built-in ClamAV antivirus scans reject millions of trojans, viruses, and malware before they reach you.

Conditional routing

Route files to different encoding steps based on size, type, dimensions, or custom metadata.

Flexible conditions

Use simple array conditions or JavaScript expressions for complex filtering logic.

File Filtering

## Every upload validated before it hits your pipeline

Scan for malware, enforce size limits, and route files to the right processing steps — all automatically.

## Flag copyrighted material

Detect copyrighted images and route or reject them before they enter your platform.

Copyrighted

getty\_stock\_48291.jpg

© Getty Images97% match

## Enforce size limits

Set maximum file size thresholds and automatically reject uploads that exceed your limits with custom error messages.

invoice.docx

photo.jpg

report.pdf

clip.mp4

spreadsheet.xlsx

presentation.pptx

database.sql

backup.zip

video-raw\.zip

20 MB limit

2 MB

4 MB

8 MB

15 MB

18 MB

28 MB

32 MB

45 MB

55 MB

## Scan for viruses and malware

ClamAV-powered scanning rejects trojans, viruses, and malware automatically.

Uploaded files

document.pdf

trojan.zip

photo.jpg

report.docx

malware.zip

## Detect and reject NSFW content

AI-powered content moderation flags nudity, violence, and other explicit material automatically.

landscape.jpg

NSFW

upload\_382.jpg

## Route files conditionally

Direct files to different processing steps based on their type, size, or metadata.

FileTypeRouted to

photo.jpgImage/image/resizeclip.mp4Video/video/encodedoc.pdfDocument/document/convertbanner.pngImage/image/resizereport.docxDocument/document/convertscan.jpgImage/image/resizepresentation.pptxDocument/document/convertdata.xlsxDocument/document/convertcover.pngImage/image/resizereceipt.pdfDocument/document/convertavatar.jpgImage/image/resizeinvoice.docxDocument/document/convertscreenshot.pngImage/image/resizecontract.pdfDocument/document/convertlogo.jpgImage/image/resizesummary.pdfDocument/document/convertthumbnail.pngImage/image/resizedemo.mp4Video/video/encodebudget.xlsxDocument/document/converthero.jpgImage/image/resizemanual.docxDocument/document/convertprofile.pngImage/image/resizearchive.pdfDocument/document/convertwallpaper.jpgImage/image/resizeslides.pptxDocument/document/convertphoto.jpgImage/image/resizeclip.mp4Video/video/encodedoc.pdfDocument/document/convertbanner.pngImage/image/resizereport.docxDocument/document/convertscan.jpgImage/image/resizepresentation.pptxDocument/document/convertdata.xlsxDocument/document/convertcover.pngImage/image/resizereceipt.pdfDocument/document/convertavatar.jpgImage/image/resizeinvoice.docxDocument/document/convertscreenshot.pngImage/image/resizecontract.pdfDocument/document/convertlogo.jpgImage/image/resizesummary.pdfDocument/document/convertthumbnail.pngImage/image/resizedemo.mp4Video/video/encodebudget.xlsxDocument/document/converthero.jpgImage/image/resizemanual.docxDocument/document/convertprofile.pngImage/image/resizearchive.pdfDocument/document/convertwallpaper.jpgImage/image/resizeslides.pptxDocument/document/convert

Robots

## Robots for File Filtering

At Transloadit, a Robot is an automated worker that performs a single task in your file pipeline — like filtering by metadata, scanning for viruses, or verifying file types.

[Filter & Route FilesDirect files to different encoding Steps based on size, type, dimensions, or custom conditions./file/filter](/docs/robots/file-filter.md)[Scan for VirusesReject trojans, viruses, and malware with ClamAV-powered antivirus scanning./file/virusscan](/docs/robots/file-virusscan.md)[Verify File TypesEnsure uploaded files match the expected MIME type regardless of file extension./file/verify](/docs/robots/file-verify.md)[Detect NSFW ContentFlag and reject nudity, violence, and other explicit material using AI-powered content moderation./image/describe](/docs/robots/image-describe.md)

Transloadit

## Stop letting bad files through

Transloadit's file filtering service protects your platform from malware and ensures only valid files reach your processing pipelines.

Virus protection

ClamAV-powered scanning rejects trojans, viruses, and malware before they ever reach your platform.

Metadata filtering

Filter by file size, dimensions, duration, bit rate, MIME type, and any metadata field.

NSFW detection

AI-powered moderation detects nudity, violence, and explicit content so you can reject or route it automatically.

Copyright detection

Identify copyrighted images before they enter your platform to avoid legal exposure.

Conditional routing

Direct files to different processing steps based on their properties for optimized workflows.

JavaScript expressions

Use the full power of JavaScript for complex filtering conditions and dynamic logic.

Instant rejection

Decline invalid files immediately with custom error messages for better user experience.

Flexible filtering

Use simple file conditions or advanced JavaScript expressions in the same workflow.

[Try Transloadit for free](/c/signup/)

[Try Transloadit for free](/c/signup/)

Related resources

## Explore this topic

Move from the service overview to practical guides, working demos, Robot documentation, and proven customer outcomes.

### Guides

* [AI content moderation in an upload workflow→](/guides/ai-content-moderation-workflows.md)
* [Automated content moderation: architecture and failure handling→](/guides/automated-content-moderation.md)
* [Calibrating AI moderation thresholds, review, and appeals→](/guides/ai-moderation-systems.md)
* [Media automation: from upload to reliable output→](/guides/media-automation.md)

### Robot docs

* [🤖/file/filter→](/docs/robots/file-filter.md)
* [🤖/file/virusscan→](/docs/robots/file-virusscan.md)
* [🤖/file/verify→](/docs/robots/file-verify.md)
* [🤖/image/describe→](/docs/robots/image-describe.md)

### Solutions

* [Healthcare & telemedicine→](/solutions/healthcare.md)
* [Social media & user-generated content→](/solutions/social.md)
* [Government & public sector→](/solutions/government.md)

### Pricing and customer story

* [Pricing→](/pricing.md)
* [How Tus may help to save lives→](/casestudies/2017/05/tus-may-help-lives.md)

### Live demos

* [View demo→Automatically reject virus-infected files with an error](/demos/file-filtering/reject-viruses-with-an-error.md)
* [View demo→Filter out anything other than video or image files](/demos/file-filtering/only-accept-videos-and-images.md)
* [View demo→Only resize larger images when resizing files](/demos/file-filtering/only-resize-large-images.md)

Try Transloadit

## Try Transloadit for free

Start filtering and protecting your file uploads today.

Malware reaching your platform

Built-in virus scanning

Invalid file uploads

Metadata-based filtering

NSFW content slipping through

AI-powered content moderation

Copyrighted images on your platform

Automatic copyright detection

Manual file validation

Automatic rejection rules

One-size-fits-all processing

Conditional routing

Poor upload error messages

Custom rejection messages

Complex validation logic

JavaScript expressions

GDPR

GDPR

HIPAA

HIPAA

ISO 27001ISO27001

ISO 27001

AES-256

AES-256

SOC 2 Type II

SOC 2 Type II

[Try Transloadit for Free](/c/signup/)

[Try Transloadit for Free](/c/signup/)

No credit card needed · Cancel anytime
