TypeScript API / laikacms/file-sanitizer / Mp4Scanner
Class: Mp4Scanner
Interface for file type specific scanners
Implements
Constructors
Constructor
ts
new Mp4Scanner(): Mp4Scanner;Returns
Mp4Scanner
Properties
supportedTypes
ts
readonly supportedTypes: readonly DetectedFileType[];File types this scanner can handle
Implementation of
DangerousContentScanner.supportedTypes
Methods
canHandle()
ts
canHandle(fileType): boolean;Check if this scanner can handle the given file type
Parameters
| Parameter | Type |
|---|---|
fileType | DetectedFileType |
Returns
boolean
Implementation of
DangerousContentScanner.canHandle
scan()
ts
scan(data, _fileType): ScanResult;Scan the file for dangerous content
Parameters
| Parameter | Type |
|---|---|
data | Uint8Array |
_fileType | DetectedFileType |