Copied to clipboard

Flag this post as spam?

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


  • bullen14 1 post 21 karma points
    Mar 18, 2020 @ 14:37
    bullen14
    0

    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?

  • Søren Kottal 530 posts 3521 karma points MVP 2x c-trib
    Mar 28, 2020 @ 19:25
    Søren Kottal
    0

    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.

  • 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.

Please Sign in or register to post replies