Copied to clipboard

Flag this post as spam?

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


  • Tobias Nylin 24 posts 117 karma points
    May 13, 2016 @ 13:15
    Tobias Nylin
    0

    Change media-folder to absolute path

    Hi! I've moved my media-folder from the default location to a server. I'm trying to figure out how to do this properly.

    I saw an example of how to do this where they in "FileSystemProviders.config" instead of using "virtualRoot", they used this instead:

    <Provider alias="media" type="Umbraco.Core.IO.PhysicalFileSystem, Umbraco.Core">
    <Parameters>
        <add key="rootPath" value="\\[ourdomain].net\dfstest\Media" />
        <add key="rootUrl" value="http://media.[ourdomain].net/media/" />
    </Parameters>
    

    I've tried this, it seems that the "rootPath" is working correctly, if I drag'n'drop a file in backoffice it is added to the specified "rootPath". However, no thumbnail is generated and if I click on the url in "link to media" I get a 404.

    I'm not sure I'm setting the "rootUrl" correctly. I'm changing [ourdomain] to the hostname that I specified in IIS. I'm also changing .net to .se.

    Is this the proper way to change the path to the media-folder? Or is there a more trivial solution?

  • John Bergman 483 posts 1132 karma points
    May 22, 2018 @ 03:43
    John Bergman
    0

    Sorry to bump this, but I was working on doing something similar; relevant information for this topic can be found here:

    https://our.umbraco.org/forum/using-umbraco-and-getting-started/80802-moving-the-media-folder-to-a-different-location

Please Sign in or register to post replies

Write your reply to:

Draft