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.
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
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
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.
is working on a reply...