Copied to clipboard

Flag this post as spam?

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


  • Albert 27 posts 49 karma points
    Nov 26, 2012 @ 11:15
    Albert
    0

    More than one media directory in FileSystemProvider.config

    Hi, I was trying to add another media directory in the FileSystemProvider.config. The code is:

    <?xml version="1.0"?>
    <FileSystemProviders>
      
      <!-- Media -->
      <Provider alias="media" type="Umbraco.Core.IO.PhysicalFileSystem, Umbraco.Core">
        <Parameters>
    <add key="virtualRoot" value="/media/" />
    <add key="virtualRoot" value="/media2/" />
        </Parameters>
      </Provider>
      
    </FileSystemProviders>

    If I have this configuration, after creating a new media file, it only save in the media2 folder. 

    Does anyone knows about it?

  • Kurt Emch 44 posts 85 karma points
    Jan 03, 2013 @ 20:25
    Kurt Emch
    0

    I was just wondering the exact same thing. I want to add a media folder called 'docs' so the URLs for uploads in this folder would look like http://www.mywebsite.com/docs/file.pdf

    Is adding a new key in this config file the right move?

    Albert have you had any luck since you posted this?

Please Sign in or register to post replies

Write your reply to:

Draft