for example images with ".JPG" as their file extension are not recognized as images, so the icon shown is the default one. ".jpg" is recognized correctly...

Comments

eikes’s picture

Status: Active » Needs work

okay, this is a quick fix. In webfm_mime_types.inc replace the last 10 lines with:

  if(array_key_exists(strtolower($ext), $webfm_mime_types)) {
    return $webfm_mime_types[strtolower($ext)];
  } else {
    return 'application/octet-stream';
  }
}
function webfm_mime_content_type($filename) {
  $ext = array_pop(explode('.', $filename));
  return webfm_get_mime_type(strtolower($ext));
}

I'll submit a real patch later on, as I'm in a hurry right now

nhck’s picture

Status: Needs work » Fixed

Eikaa, thank you very much for reporting this. I just committed your fix to cvs.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.