Copied to clipboard

Flag this post as spam?

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


  • Peester 14 posts 20 karma points
    Feb 11, 2009 @ 14:05
    Peester
    0

    Adding A image when registering a member

    Hi All,

    i have created a custom usercontrol for member registration, however one of the requirements is that a member should be able to upload a profile picture of them self's.

    i have managed to create all the custom properties for the users data, but cant figure out how in the world one would go about letting a user select a image from their computer and getting it saved into the media folder and linked to that user.

    any help will be greatly appreciated
    :)

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

    Hi,

    I'm sure there's a multitude of solutions available, here's one of many

    - use asp.net upload to handle the file upload
    - create media item programmatically using the uploaded image
    - make sure there's a property on the member type of type media picker
    - set media picker property's value to the id of the media item just created in step 2

    Hope this helps.

    Regards,
    /Dirk


  • Peester 14 posts 20 karma points
    Feb 11, 2009 @ 14:29
    Peester
    0

    Thanks for the help Dirk,

    Just one more question now :)

    do you know where i can maybe find an example of how to create a media item programmatically?

    once again, thanks for the help!

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Feb 11, 2009 @ 15:36
    Dirk De Grave
    1

    Hi Peester,

    Mr nibble has an excellent code example on uploading media items at http://www.nibble.be/?p=55

    Regards,
    /Dirk

  • Haris 15 posts 35 karma points
    Jul 24, 2014 @ 14:47
    Haris
    1

    Hello everyone,

    this post is pretty outdated and after few years I'm wondering the same. So, my question, is the process of adding a profile image to a member still the same?

    Greetings

  • Albert Fors 1 post 21 karma points
    Sep 24, 2014 @ 14:40
    Albert Fors
    0

    I'm wondering about the same thing. Anyone knows?

Please Sign in or register to post replies

Write your reply to:

Draft