Copied to clipboard

Flag this post as spam?

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


  • ssougnez 93 posts 319 karma points c-trib
    Apr 25, 2020 @ 11:17
    ssougnez
    0

    Media not showing after import from production

    Hello,

    I currently have a site in production with the following FileSystemProvider.config:

      <add key="rootPath" value="\\xyz.com\files\Application\Umbraco\Production\prd01"/>
      <add key="rootUrl" value="/files"/>
    

    I'm trying to restore this environment on my development machine to have an up to date database. To do so, I backup/restore my database from production to my dev environment, then I copy/paste the content of \xyz.com\files\Application\Umbraco\Production\prd01 in the Media folder of my development machine and finally, I update my config file like this:

      <add key="rootPath" value="Media"/>
      <add key="rootUrl" value="/files/"/>
    

    I tried everything in "rootPath":

    • The full path to the media folder
    • a UNC path to a shared toward the media folder
    • The relative path (as shown above)

    But nothing works... I could validate that if I only

      <add key="virtualRootPath" value="~/media/"/>
    

    And change in the source of my page "/files/" to "/media/" it works but it's of course not what I want :-)

    Am I doing something wrong?

Please Sign in or register to post replies

Write your reply to:

Draft