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 702 posts 4497 karma points MVP 5x 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.

Please Sign in or register to post replies

Write your reply to:

Draft