In at least one case, a valid JPG image file is being served with the wrong mimetype (I think) and is therefore rendering funny in the browser because (I think) it lacks a valid image file extension. In fact, instead of .jpg, the closest it has to an extension is named from the project release name ".4-BETA1". Clearly that was unintended and is a user-content driven bug, but it should be remedied in the software, I think.

How to reproduce
1. Visit contrib project https://www.drupal.org/project/views_dynamic_fields
1. See the project screenshot thumbnail looks fine
1. Click the thumbnail.
1. Expect to see full screen zoom in (nice new feature, guys and gals!), instead see JFIF garble (see attached).

Instead
Screenshot of gobbledygook

Workaround
As a workaround, I could right-click, Save Link As from the thumbnail and manually add the ".jpg" extension to the downloaded file. It shows fine for me on my mac and in my browser this way.

All the best
-Bronius

CommentFileSizeAuthor
drupal org missing mimetype-3.png638.86 KBtexas-bronius

Comments

texas-bronius created an issue. See original summary.

avpaderno’s picture

I can confirm this is still an issue. This report needs to be moved in the correct issue queue, as this was thought to be used for design discussions, not to handle bugs in the current implementation.

avpaderno’s picture

Title: drupal.org project pages: Image file name without extension doesn't render correctly in the visitor's browser » Image filename without extension doesn't render correctly in the visitor's browser
Project: Drupal.org Design » Drupal.org customizations
Version: » 7.x-3.x-dev

I am not sure this could be considered a bug. Without any extension, the file is assumed to be a binary file and shown as such.

texas-bronius’s picture

> I am not sure this could be considered a bug. Without any extension, the file is assumed to be a binary file and shown as such.

Ok - Well, I won't press here, but consider that it is an inconsistent behavior: If the thumbnail shows, then one would expect the zoom to work. Even if the thumbnail has to artificially be made to not work (most simply, do not accept file uploads without recognized extensions as project thumbs), the experience would at least be consistent.

Thanks for taking the time to read, reclassify, and consider a fix for what still behaves like a UX bug at least. Cheers!
-Bronius

drumm’s picture

Assigned: Unassigned » drumm
Status: Active » Fixed

I have updated all projects which had extension-less images from migrations. The current validation does not allow extension-less images to be uploaded.

Status: Fixed » Closed (fixed)

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