Class AssetValidator
Index
Accessors
Methods
Accessors
StaticMediaTypes
Provides several readonly default media type Sets useful for the
mediaTypesoption.Returns DefaultMediaTypes
Methods
StaticparseMedia
Parses the provided file path to determine the media type and validity based on the file extension. Certain extensions can be excluded in addition to filtering by specified media types.
Parameters
- options: ParseMedia
Options.
Returns ParsedMediaResult
The parsed asset information containing the file path, extension, element type, and whether the parsing is valid for the file extension is supported and not excluded.
- options: ParseMedia
Provides a utility to validate media file types and determine the appropriate HTML element type for rendering.