Copied to clipboard

Flag this post as spam?

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


  • Christian Jansen 12 posts 20 karma points
    Jul 03, 2009 @ 14:50
    Christian Jansen
    0

    How to get a media object by node id?

    I'm working on a usercontrol (my first ever) with media uploading functionality. The media is typically the avatar of a Member. When a Member uploads an image for the first time a new Media object is created with Media.MakeNew()-method. But when a member already has an avatar, I'd like to reuse the Media object instead of creating a new one. But I can't seem to find a method in the API for fetching a Media object based on node ID. How is this done?

    regards, Christian

  • Christian Jansen 12 posts 20 karma points
    Jul 03, 2009 @ 14:57
    Christian Jansen
    0

    Hmm, seems you can use the constructor. I'm all out of practice.

Please Sign in or register to post replies

Write your reply to:

Draft