Copied to clipboard

Flag this post as spam?

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

  • iNETZO 93 posts 412 karma points
    Oct 07, 2019 @ 10:08

    How to specify filename when uploading file via Surfacecontroller?


    In Umbraco 7 i used the MediaService to add a new media item using this code:

    newImage.SetValue("umbracoFile", mediaName, new MemoryStream(imageBytes));

    mediaName contained the orgional filename. In Umbraco 8 the filename argument is removed. How do you need to specify the filename for an upload?

Please Sign in or register to post replies

Write your reply to: