create

Creates the FileAsset subtype that best matches the given file's MIME type.

Return

An ImageAsset, PdfAsset, or GenericAsset appropriate for the file's type.

Parameters

file

The local File to wrap.