Copied to clipboard

Flag this post as spam?

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


  • Alex Skrypnyk 6182 posts 24284 karma points MVP 9x admin c-trib
    Aug 29, 2019 @ 21:49
    Alex Skrypnyk
    0

    Does "umbracoMediaPath" work in v8?

    Hello

    Just tried to use "umbracoMediaPath" in v8, the folder I wanted to use was created in the root, but media files are not storing there.

    So does "umbracoMediaPath" work in v8?

    Thanks,

    Alex

  • Alex Skrypnyk 6182 posts 24284 karma points MVP 9x admin c-trib
    Aug 29, 2019 @ 22:07
    Alex Skrypnyk
    100

    In Umbraco 8 you do this using a composer to create a custom physical file system instance -

    public class MediaComposer : IUserComposer
    {
        public void Compose(Composition composition)
        {
            composition.SetMediaFileSystem(() => new PhysicalFileSystem("~/CustomMedia"));
        }
    }
    

    https://our.umbraco.com/forum/umbraco-8/96889-filesystemproviders-section-umbraco-8-to-change-media-location#comment-306231

  • 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