Closed alexeygilmanov closed 2 years ago
Hiya @alexeygilmanov,
Just wanted to let you know that we noticed that this issue got a bit stale and might not be relevant any more.
We will close this issue for now but we're happy to open it up again if you think it's still relevant (for example: it's a feature request that's not yet implemented, or it's a bug that's not yet been fixed).
To open it this issue up again, you can write @umbrabot still relevant
in a new comment as the first line. It would be super helpful for us if on the next line you could let us know why you think it's still relevant.
For example:
@umbrabot still relevant This bug can still be reproduced in version
x.y.z
This will reopen the issue in the next few hours.
Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:
Media picker no longer show correct preview of selected svg images and files as it did previous on 7.13.*. Tested on Umbraco 7.15.5
Umbraco version
I am seeing this issue on Umbraco version: 7.15.5
Reproduction
Bug summary
It looks like there were changes introduced in
Umbraco.Core.Persistence.Repositories.EntityRepository.GetFullSqlForEntityType
to get rid of methodGetFullSqlForMedia
so no more additional fields are fetched from database like umbracoFile, umbracoWidth, umbracoHeight, umbracoBytes, umbracoExtension, umbracoTitle These leads to the lack of metaData info returned from/umbraco/backoffice/UmbracoApi/Entity/GetByIds?type=Media
request that is used inUmbraco.Web.UI.Client\src\views\propertyeditors\mediapicker\mediapicker.html
to determine the correct media preview.Response from 7.13.1:
Response from 7.15.5:
Mediapicker view:
Specifics
Steps to reproduce
Expected result
There should be a correct thumbnail preview of selected .svg Image and any File media
Actual result
There are blank .svg Image preview and corrupted File preview (lack of file extension).