Class AssetValidator
Index
Methods
Methods
Static
parseMedia
- parseMedia(options: ParseMedia): ParsedMediaResult
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.