src/bulletproof.php
protected function getImageMime($tmp_name)
    {
      $this->mime = @$this->acceptedMimes[exif_imagetype($tmp_name)];
      if (!$this->mime) {
        return null;
      }

      return $this->mime;
    }
protected function getImageMime($tmp_name)
    {
      $this->mime = @$this->acceptedMimes[exif_imagetype($tmp_name)];
      if (!$this->mime) {
        return null;
      }

      return $this->mime;
    }
protected function getImageMime ( $ tmp_name ) { $ this -> mime = @ $ this -> acceptedMimes [ exif_imagetype ( $ tmp_name ) ] ; if ( ! $ this -> mime ) { return null ; } return $ this -> mime ; }
Gets the real image mime type.

@param $tmp_name string The upload tmp directory

@return null|string
Gets the real image mime type .