Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kirsty Cameron 2 posts 72 karma points
    Oct 10, 2019 @ 10:01
    Kirsty Cameron
    0

    umbraco.library.GetMedia

    I need to know why in our bespoke .NET code calls to https://en.wikibooks.org/wiki/Umbraco/Reference/umbraco.library/GetMedia are now returning media urls with the height and type of the image prefixed to the url path, e.g. https://stage.www.boyerplanning.co.uk/news/283jpg/media/112085/tough-mudder.jpg

    Interestingly I notice that when I upgraded to 7.3.0 from 7.2.0 that the ordering of image attributes back end in Umbraco has changed, with the height and type now preceding the Upload Image. I believe this is the reason our calls to GetMedia are now inserting, e.g. /283jpg, in the image url?

    By the way this issue persisted even when I had upgraded to 7.15.3, so that’s why started upgrading again from our current version of 7.1.2 to see which upgrade first caused the issue, which was indeed upgrading from 7.2.0 to 7.3.0.

    Any help greatly appreciated. I'm tearing my hair out with this!

  • Steve Megson 151 posts 1022 karma points MVP c-trib
    Oct 10, 2019 @ 12:23
    Steve Megson
    0

    I can't reproduce that in a fresh 7.15.3 site, and there's no obvious change between 7.2.0 and 7.3.0 that I'd expect to affect it. What does the XML returned from GetMedia look like if you add something like this?

    library.GetMedia(1234, false).Current.OuterXml
    
Please Sign in or register to post replies

Write your reply to:

Draft