--- title: "set filesizes" slug: "set-filesizes" updated: 2026-09-08T19:56:07Z published: 2026-09-08T19:56:07Z canonical: "docs.trellix.com/set-filesizes" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # set filesizes Enables you to change the minimum and maximum file sizes. **Syntax**: **`set filesizes <type number> <minimum size> <maximum size> <restart engine>`** | Parameter | Description | | --- | --- | | type number | Type of file submitted for analysis. | | minimum size | Minimum file size. | | maximum size | Maximum file size. | | restart engine | Uses a value of 1 or 0. 1 — Restart AMAS service; this is needed for NSP and NGFW integration. 0 — Keeps AMAS service running; use this when submission is through GUI/RestAPI. | | Type number | File description | Default Minimum Size | Default Maximum Size | Configurable Minimum | Configurable Maximum | | --- | --- | --- | --- | --- | --- | | 1 | Windows portable executable (PE) exe, dll or sys file | 1024 bytes | 10 MB | 100 | 128000000 | | 2 | PDF document file with .pdf extension | 2048 bytes | 25 MB | 100 | 128000000 | | 3 | Java class data file with .class extension | 1024 bytes | 5 MB | 100 | 128000000 | | 4 | Microsoft Office older files with .doc, .ppt or .xls extension | 5120 bytes | 10 MB | 100 | 128000000 | | 5 | Microsoft rich text format file with .rtf extension | 1024 bytes | 10 MB | 100 | 128000000 | | 6 | .zip file, APK file, or newer Microsoft Office file with .docx, .pptx or .xlsx extension | 200 bytes | 20 MB | 100 | 128000000 | | 7 | JPEG image file | 5120 bytes | 1 MB | 100 | 128000000 | | 8 | PNG image file | 5120 bytes | 1 MB | 100 | 128000000 | | 9 | GIF image/bitmap file | 5120 bytes | 1 MB | 100 | 128000000 | | 10 | Microsoft DOS executable file with .com extension | 1024 bytes | 5 MB | 100 | 128000000 | | 11 | Flash file with .swf extension | 1024 bytes | 5 MB | 100 | 128000000 | | 12 | 7-zip compressed archive file with .7z extension | 200 bytes | 10 MB | 100 | 128000000 | | 13 | RAR compress archive file with .rar extension | 200 bytes | 10 MB | 100 | 128000000 | | 14 | Microsoft cabinet compressed archive file with .cab and .msi extension | 200 bytes | 10 MB | 100 | 128000000 | | 15 | Miscellaneous text or script files, such as .js, .bat, .vbs, .xml, .URL, .htm. | 100 bytes | 1 MB | 100 | 128000000 | | 16 | ACE archive data | 200 bytes | 10 MB | 100 | 128000000 | | 17 | Gzip archive data | 100 bytes | 10 MB | 100 | 128000000 | | 18 | ISO 9660 CD-ROM filesystem data | 100 bytes | 10 MB | 100 | 128000000 | | 19 | News or mail, ASCII text, with CRLF line terminators | 100 bytes | 10 MB | 100 | 128000000 | | 20 | XZ compressed data | 200 bytes | 10 MB | 100 | 128000000 | For example, if you want to change the minimum file size of a JPEG image file to 300 bytes, then run the command: **`set filesizes 7 300 1000000 0`**. ### Note Make sure that the file size you specify is within the configurable minimum and configurable maximum value range. :