File Inspector

File Inspector (ODC)

Stable version 1.0.0 (Compatible with ODC)
Uploaded on 06 September 2024 by OutSystems Labs
File Inspector

File Inspector (ODC)

Documentation
1.0.0

Install on environment. No configuration required.


Configuration:

Local file size limit. Which will determine the limit file size that will be allowed to be sent directly to the extension. Bigger files will be hosted and accessed through an API.


File hosting:

Hosted file access is secured by Bearer token, and the file is deleted after one single access.


Usage:

Create Definitions object, according to your needs, including all acceptable/valid files types and/or extensions. Add custom file type(s) if necessary.

Definition packs make it easy to expand or limit the number of definitions that the Inspector will use.



Inspect a file using the previously created definitions object.

The inspection result can be a fully detailed result, or results grouped by file extension or file types.



Optimizing/Balancing Performance and Memory

  1. Trim the Data You Don't Need
    • Create definitions including only valid files.
    • Trim mime-types, file signatures and descriptions from responses.
  2. Slow Initialization = Fast Execution
    • Use the same definitions object when performing the same validation for multiple files.
  3. Parallel = True/False
    1. The Parallel option controlls whether multiple threads will be used to perform detections. If you have lots of definitions or want to make optimal usage of your CPU, this should be set to true. If you have a low number of definitions or you want more balanced CPU usage, set this to false.