GuzzleHttpPsr7mimetype_from_filename

Determines the mimetype of a file by looking at its extension.

Description

(null|string) GuzzleHttp\Psr7\mimetype_from_filename( (string) $filename ); 

Returns (null|string)

Parameters (1)

0. $filename (string)
The filename.

Usage

  1. if ( !function_exists( 'GuzzleHttp\Psr7\mimetype_from_filename' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'w3-total-cache/lib/Azure/GuzzleHttp/Psr7/functions.php'; 
  3.  
  4. // The filename. 
  5. $filename = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = GuzzleHttp\Psr7\mimetype_from_filename($filename); 
  9.  

Defined (1)

The function is defined in the following location(s).

/lib/Azure/GuzzleHttp/Psr7/functions.php