I use Umbraco 4x.
I need a way to get the list of the media from a media node and its size, in order to see how and where to optimize the (uploaded) pictures.
Because some uploaded pictures are too large, so it takes time to display them, so if I am searching a a way to optimize the media loading.
I found a little sql script that list the medias
select cmsPropertyData.id from cmsPropertyData
inner join cmsPropertyType on cmsPropertyData.propertytypeid = cmsPropertyType.id
inner join cmsDataType on cmsPropertyType.dataTypeId = cmsDataType.nodeId
where cmsDataType.controlId = '5032a6e6-69e3-491d-bb28-cd31cd11086c'
and cmsPropertyData.dataNvarchar is not null
but I rather need a list of nodes from a given node, the path and the file size.