Setting upload property on document programatically
Hello!
My minds gone blank and I can't work out how to do this!
I have created a document type with numerous properties, one of which is an upload. I am creating a new document and setting these properties programatically, but I can't work out how I need to set the upload value.
Setting upload property on document programatically
Hello!
My minds gone blank and I can't work out how to do this!
I have created a document type with numerous properties, one of which is an upload.
I am creating a new document and setting these properties programatically, but I can't work out how I need to set the upload value.
Do I need to make a new media item like:
and then assign the media Id to it?
or do I need to upload it somewhere and assign a path?
If so where?
Or does it need doing a different way?
Thanks for any help!
Bex
Finally after much searching I have found a post that tells me how:
http://our.umbraco.org/forum/developers/api-questions/6503-Upload-datatype-member-uploading-image
is working on a reply...