You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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).
openui5/src/sap.m/src/sap/m/upload/FilePreviewDialog.js
Line 28 in 9c11476
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
The text was updated successfully, but these errors were encountered: