Copied to clipboard

Flag this post as spam?

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


  • Darren Eccles 59 posts 298 karma points
    Jun 16, 2017 @ 13:17
    Darren Eccles
    0

    Problem with 7.6.1 .GetMediaByPath(string mediaPath)

    Hi,

    I've come across a bit of a problem, code below:

    using Umbraco.Core.Services;
    
    IMediaService mediaService = ApplicationContext.Current.Services.MediaService;
    
    IMedia media = mediaService.GetMediaByPath(mediaPath);
    

    Now when I debug with the code above, its bringing me back a different media item.

    Has anyone come across this??

    Or does any one know where I can get my hands on the raw code so I can see what the helper is doing??

    Thanks

    Darren

  • Darren Eccles 59 posts 298 karma points
    Jun 16, 2017 @ 13:47
    Darren Eccles
    0

    UPDATE - I've uploaded the new umbraco .dll to the production server and it works.

    Darren

Please Sign in or register to post replies

Write your reply to:

Draft