Describe the bug
When going to the submission panel/notebook file submission and viewing a BMP from Paint in Chrome/Edge, it instead triggers a download and displays nothing. If you have "Expand files in notebook file submission on page load" enabled and you go to a gradeable with file submission with the image uploaded, it triggers a download shortly after page load from the notebook panel.
Image displays as expected in Firefox.
Expected behavior
The image should display as normal.
To Reproduce
Steps to reproduce the behavior:
- Create and save image from Paint (Windows, original Paint) as .bmp (I used "24-bit Bitmap")
- Upload file to gradeable submission
- Navigate to gradeable submission in submission panel or view file in the notebook file submission section (if it is a notebook with file submission)
Configuration
- OS: Windows 10
- Browser: Chrome, Edge
Screenshots

Additional context
The image MIME type is image/bmp according to the file command.
When being processed by the function displayFile from MiscController.php, the mime type appears as image/x-ms-bmp.
Hard coding the file type in the function displayFile from MiscController.php as image/bmp leads the file to displaying correctly in Chrome/Edge.
Describe the bug
When going to the submission panel/notebook file submission and viewing a BMP from Paint in Chrome/Edge, it instead triggers a download and displays nothing. If you have "Expand files in notebook file submission on page load" enabled and you go to a gradeable with file submission with the image uploaded, it triggers a download shortly after page load from the notebook panel.
Image displays as expected in Firefox.
Expected behavior
The image should display as normal.
To Reproduce
Steps to reproduce the behavior:
Configuration
Screenshots

Additional context
The image MIME type is
image/bmpaccording to the file command.When being processed by the function
displayFilefrom MiscController.php, the mime type appears asimage/x-ms-bmp.Hard coding the file type in the function
displayFilefrom MiscController.php asimage/bmpleads the file to displaying correctly in Chrome/Edge.