Copied to clipboard

Flag this post as spam?

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


  • jaygreasley 416 posts 403 karma points
    Apr 16, 2009 @ 13:37
    jaygreasley
    0

    GetMedia bug?

    here is a very simple snippet:




    which renders:

    http://domain.com/media/329/blue%20beanie%20day.jpgjpg9561

    The jpg9561 on the end is wrong. It seems to be appaending the Type and Size values on the end.

    Or am I doing it wrong?

    tia

    Jay

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Apr 16, 2009 @ 13:43
    Dirk De Grave
    0

    Hi Gay,

    Yes, GetMedia returns the complete xml...
    need to get only the umbracoFile from the data node!



    Cheers,
    /Dirk

  • jaygreasley 416 posts 403 karma points
    Apr 16, 2009 @ 13:53
    jaygreasley
    0

    Hey Dirk,

    Thanks.
    I think I tried that first but I ended up with an empty href.

    I shall continue troubleshooting

    Cheers

    Jay

  • jaygreasley 416 posts 403 karma points
    Apr 16, 2009 @ 13:55
    jaygreasley
    0

    aha, for anyone other newbs making the same mistake it needs single quotes on the umbracoFile

    ie

  • czy 12 posts 32 karma points
    Jul 13, 2012 @ 10:56
    czy
    0

    Please refer to Umbraco GetMedia-Complete example. Hopfully, it will helpful to you.

Please Sign in or register to post replies

Write your reply to:

Draft