Copied to clipboard

Flag this post as spam?

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


  • Bram Loquet 72 posts 102 karma points
    Apr 19, 2011 @ 11:42
    Bram Loquet
    0

    use uploadField for memberProperties

    I'm working on a website where the members are able te edit their own profile (members).
    For the moment I'm just looping all the properties by adding them to a Placeholder.
    To save all these properties I just have to loop all these contols in the placeholder and update the property value.

    Now the problem comes... I want the members to be able to upload some pictures/files by using an uploadField but I don't know where to get the id of media folder from. How I have to generate the 123456 for me media file stored in  /media/123456/file.jpg.

    Anyone facing the same problem?

  • Comment author was deleted

    Apr 19, 2011 @ 13:12

    Well if you are writing a custom upload you can basicly choose where you want to store the media...

    You could do something like /media/member/memberid

    I think by default it's using the id of the property

  • Bram Loquet 72 posts 102 karma points
    Apr 19, 2011 @ 16:39
    Bram Loquet
    0

    merci Tim,

    managed to get it working, I was making it a bit too complicated,
    there's no need to make a Media item for an uploadField.

Please Sign in or register to post replies

Write your reply to:

Draft