Copied to clipboard

Flag this post as spam?

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


  • Peter S 64 posts 106 karma points
    Nov 11, 2009 @ 14:03
    Peter S
    0

    custom form with FileUpload control

    What is the best way to add/store a file for a Member?
    I'm trying to upload a file through a custom usercontrol, and add that to a new Member. I've tried to create a 'Upload' datatype property on a 'Member type', but I'm not sure if that would work.

    Probably one way to get this done is by storing the uploaded file in a custom directory, then add a label to the Member with the file location. But I'm not sure if that's the easiest way to go about this.

     

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Nov 11, 2009 @ 14:18
    Dirk De Grave
    0

    Peter,

    I'd upload the file as you'd store a normal media item, get the node id of that new media item and store that as property on the member, use GetMedia() in xslt or c# code to get the path to the media item

    Hope this helps.

     

    Regards,

    /Dirk

  • Peter S 64 posts 106 karma points
    Nov 11, 2009 @ 16:54
    Peter S
    0

    Thanks for your reply Dirk.
    I'll give that a try.

Please Sign in or register to post replies

Write your reply to:

Draft