Hey, I'm trying to upload by code lots of pictures into the media section of umbraco. I can create a new media item with the media service class, but I don't know what should I put inside the value of "umbracofile" property. To make the image appear. Nothing makes the image show up. So what should I put in the set value function?
Upload Image to new Media Item
Hey, I'm trying to upload by code lots of pictures into the media section of umbraco. I can create a new media item with the media service class, but I don't know what should I put inside the value of "umbracofile" property. To make the image appear. Nothing makes the image show up. So what should I put in the set value function?
Hi bullen14
To add a file to the uploadfile property, you need to set the value of the property to a
Stream
of the file you want it to hold.is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.