Skip to content

TypeScript API / laikacms/file-sanitizer / SanitizeResult

Interface: SanitizeResult ​

Successful sanitization result

Properties ​

data ​

ts
data: Uint8Array;

The sanitized file data


fileType ​

ts
fileType: 
  | SanitizableFileType
  | "ignored";

Detected file type


ignored ​

ts
ignored: boolean;

Whether the file was passed through without modification (ignored)


strippedMetadata ​

ts
strippedMetadata: StrippedMetadataInfo;

Metadata that was stripped (for logging/debugging)

Released under the MIT License.