Copied to clipboard

Flag this post as spam?

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


  • massimiliano 10 posts 80 karma points
    Jun 01, 2016 @ 07:30
    massimiliano
    0

    data type

    Sorry, an question i can install the element media(for example images) in a different server of umbraco Thanks for everything.

  • massimiliano 10 posts 80 karma points
    Jun 01, 2016 @ 08:27
    massimiliano
    0

    Ok i have the component media in a server and umbraco templates in a different server . How can upload the image?

  • Dave Woestenborghs 3504 posts 12135 karma points MVP 9x admin c-trib
    Jun 01, 2016 @ 08:30
    Dave Woestenborghs
    0

    Hi Massimiliano,

    This is possible with the filesystem provider that is shipped with Umbraco out of the box.

    You need to make changes in the file /config/FileSystemProviders.config

    <?xml version="1.0"?>
    
        <FileSystemProviders>
    
          <!-- Media -->
          <Provider alias="media" type="Umbraco.Core.IO.PhysicalFileSystem, Umbraco.Core">
            <Parameters>     
              <add key="rootPath" value="\\servernetworkpath\media" />
              <add key="rootUrl" value="http://media.yourdomain.com/media/" />
            </Parameters>
          </Provider>
    
        </FileSystemProviders>
    

    This way you can store your media files on different server. Make sure you access rights are set up correctly so that you website can create, modify and delete files.

    rootPath : this is the network URL of your file server rootUrl : the url where the files can be accessed

    Another approach is to put your files in Azure Blob storage. You can enable that in Umbraco by installing this package : https://github.com/JimBobSquarePants/UmbracoFileSystemProviders.Azure

    And if that doesn't work for you, you can always write your own file system provider : https://our.umbraco.org/Documentation/Extending/Custom-File-Systems

    Dave

Please Sign in or register to post replies

Write your reply to:

Draft