예제 #1
0
 /**
  * get Mime Type From File Name
  * 
  * @param string $filename
  * @return string
  */
 public static function getMimeTypeFromFileName($filename = '')
 {
     $extension = MimeType::retrieveExtensionFromFilename($filename);
     return MimeType::getMimeTypeFromFileExtension($extension);
 }