SilverStripe\Assets\Storage\AssetStore::getMimeType
Get mime type of this file
Signature
public function getMimeType(string
$filename,
string
$hash,
[string|null
$variant = NULL] )
Parameters
$filename
—
string
- Filename (not including assets)
$hash
—
string
- sha1 hash of the file content.
If a variant is requested, this is the hash of the file before it was modified.
$variant
—
object
- Optional variant string for this file
Returns
- string
- Mime type for this file