Details
-
Improvement
-
Resolution: Unresolved
-
Neutral
-
None
-
None
-
None
-
None
Description
I think it would be good, for bigger images, to display MB instead of KB.
This code we use in the subscription service ui, although it is in typescript, might help -> https://git.magnolia-cms.com/projects/CLOUD/repos/subscription-service-ui/browse/src/app/page/subscription-info/metric/component/metric-value/metric-value.component.ts#30
Should make change in two places:
1. Create a page with Basic template, then select component "Text and Image", try to upload an image

2. In Asset app, select to view an asset detail

Expected result:
Display size in MB for big image instead of KB
Dev notes:
info.magnolia.dam.app.field.link.DamItemPreviewComponent#getFileInfo
info.magnolia.ui.field.UploadFieldDetailComponent#getFormattedSizeInfo
Checklists
Acceptance criteria