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?
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
andsitetwo.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
andsitetwo.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
is working on a reply...