Beispiel #1
0
 /**
  * Returns the mime type of the file.
  *
  * The mime type is guessed using the functions finfo(), mime_content_type()
  * and the system binary "file" (in this order), depending on which of those
  * is available on the current operating system.
  *
  * @returns string  The guessed mime type, e.g. "application/pdf"
  */
 public function getMimeType()
 {
     $mimeType = parent::getMimeType();
     if (is_null($mimeType)) {
         $mimeType = $this->mimeType;
     }
     return $mimeType;
 }