Tiger_Media_Scanner_Interface

@api

Tiger_Media_Scanner_Interface — a pluggable content scanner for uploads.

Implementations examine a file before it's trusted: a virus scanner (ClamAV), an AI moderation scanner (AWS Rekognition), etc. All are OPTIONAL and config-gated — the upload pipeline (Tiger_Media_Scan) only runs the ones turned on.

Methods

scan()

scan(string $path, ?string $mime = null): array

Scan a file on disk. Never throws — transport/tooling failures come back as error so the orchestrator can apply its fail-open/closed policy.

  • $path string — the file on disk to scan
  • $mime ?string — the file's MIME type (may be null)

Returns array — reason:?string, meta:array}