Copied to clipboard

Flag this post as spam?

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


  • Paul A 133 posts 368 karma points
    Nov 22, 2011 @ 11:48
    Paul A
    0

    media.getProperty("umbracoFile").Value giving half folder, half node path

    Hi,

    Am I doing something wrong here. Uploading/saving a file via usercontrol, then trying to email the URL of that file.

    Media file = new Media(mediaID);
    string url = file.getProperty("umbracoFile").Value.ToString();

    That's giving me:

    
    /media/CRE/10002/-1,10001,10002

    Am I missing something? I was hoping for /media/CRE/10002/filename.pdf

    Cheers,

     

  • Paul A 133 posts 368 karma points
    Nov 22, 2011 @ 14:55
    Paul A
    0

    Ah, this would be because the upload is failing! I'll get my coat.

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies