Copied to clipboard

Flag this post as spam?

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


  • James Lau 37 posts 58 karma points
    Jun 24, 2018 @ 11:07
    James Lau
    0

    UmbraFile property not in json

    Hi,

    My project using 7.5.13. I am using media services to save a image file. The value stored in [cmsPropertyData].[dataNtext ] is a simple path string. However, when I am using backoffice interface the field value is json {src: 'path', crops: []}

    This cause the imagePath value return in different format.

       IMedia media = getMedia(id);
        var imagePath = media.Properties["umbracoFile"].Value.ToString();
    
Please Sign in or register to post replies

Write your reply to:

Draft