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.
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
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.
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
Thanks for your reply Dirk.
I'll give that a try.
is working on a reply...