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

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
| Comment | File | Size | Author |
|---|---|---|---|
| drupal org missing mimetype-3.png | 638.86 KB | texas-bronius |
Comments
Comment #2
avpadernoI 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.
Comment #3
avpadernoI 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.
Comment #4
texas-bronius commented> 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
Comment #5
drummI have updated all projects which had extension-less images from migrations. The current validation does not allow extension-less images to be uploaded.