Browser/version (+device/version): Microsoft Edge, Google Chrome, Safari
Any other tested browsers/devices(OK/FAIL): Windows, Iphone
Steps to reproduce the problem:
Currently the file preview dialog doesn't preview a jpg files if the mimetype is set to image/jpg, because the expected mimetype for a jpg file is image/jpeg. (hardcoded in the FilePreviewDialog, see referenced line below)
Some systems set the mimetype for a jpg file to image/jpg (for example SAP Service Cloud).
OpenUI5 version: 1.24.1
Browser/version (+device/version): Microsoft Edge, Google Chrome, Safari
Any other tested browsers/devices(OK/FAIL): Windows, Iphone
Steps to reproduce the problem: Currently the file preview dialog doesn't preview a jpg files if the mimetype is set to image/jpg, because the expected mimetype for a jpg file is image/jpeg. (hardcoded in the FilePreviewDialog, see referenced line below) Some systems set the mimetype for a jpg file to image/jpg (for example SAP Service Cloud).
https://github.com/SAP/openui5/blob/9c11476b266b8c68b007386a0260c09638bb451b/src/sap.m/src/sap/m/upload/FilePreviewDialog.js#L28
What is the expected result? A preview to be show if the mimetype is image/jpg (same as image/jpeg)
What happens instead? The file preview not available placeholder is shown