private static function lookupContentType($filename) {
    foreach ($_FILES as $file) {
      if ($file['tmp_name'] == $filename) {
        return $file['type'] ?: static::DEFAULT_CONTENT_TYPE;
      }
    }
    return static::DEFAULT_CONTENT_TYPE;
  }
private static function lookupContentType($filename) {
    foreach ($_FILES as $file) {
      if ($file['tmp_name'] == $filename) {
        return $file['type'] ?: static::DEFAULT_CONTENT_TYPE;
      }
    }
    return static::DEFAULT_CONTENT_TYPE;
  }
private static function lookupContentType ( $ filename ) { foreach ( $ _FILES as $ file ) { if ( $ file [ 'tmp_name' ] == $ filename ) { return $ file [ 'type' ] ? : static :: DEFAULT_CONTENT_TYPE ; } } return static :: DEFAULT_CONTENT_TYPE ; }
Lookup the content type associated with an uploaded file.

@param string $filename
The filename of the uploaded file.
@return
Content type associated with filename, otherwise DEFAULT_CONTENT_TYPE.
Lookup the content type associated with an uploaded file .