Copied to clipboard

Flag this post as spam?

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


  • Nik 1612 posts 7258 karma points MVP 7x c-trib
    Jan 07, 2019 @ 15:56
    Nik
    0

    Isolating media items in a single instance of Umbraco with multiple sites.

    Hi All,

    As many may know media uploaded into an instance of Umbraco is available on any domain that is configured to that instance. So if you are running multiple sites, for example siteone.com and sitetwo.com and you upload a media item that ends up as /media/1000/myexamplemediaitem.jpg it is available on both: siteone.com/media/1000/myexamplemediaitem.jpg and sitetwo.com/media/1000/myexamplemediaitem.jpg

    My question is, does anyone have any ideas on how this can be prevented? How can we look to isolate media based on domain/folder levels without having to add rules for each piece of media uploaded individually (as that would be a headache). It would be great if there was some sort of mechanism to allocate a "root" type folder to a site root node and say "only media here is accessible to this site root"... this would then be enforced on both the back office in media pickers etc, and on the front end through some sort of request handling?

    Thoughts? Ideas? Am I being over hopeful? Is there something that already does this?

    Nik

Please Sign in or register to post replies

Write your reply to:

Draft