Is it possible to have the virtual media path be anything other than "Media"?
I have been building a .net core website with an Umbraco 7 back end and have run into the potential problem whereby if a user creates top level page/folder called "media" then there will be a route conflict with the umbraco media. Media files are stored in Azure, but images are served from a custom website that manages crops, etc.
What i would like to do is change the Umbraco default "/media/1034/my-image.jpg" to something else - e.g. "/medialib/1034/my-image.jpg" - does anyone know if this is possible?
Is it possible to have the virtual media path be anything other than "Media"?
I have been building a .net core website with an Umbraco 7 back end and have run into the potential problem whereby if a user creates top level page/folder called "media" then there will be a route conflict with the umbraco media. Media files are stored in Azure, but images are served from a custom website that manages crops, etc.
What i would like to do is change the Umbraco default "/media/1034/my-image.jpg" to something else - e.g. "/medialib/1034/my-image.jpg" - does anyone know if this is possible?
Marshall
Hi Marshall,
The FileSystemProviders.config is likely to be what you're looking for. In this file you can swap out the media provider or can change the existing virtual folder to point somewhere else https://our.umbraco.com/documentation/Reference/Config/fileSystemProviders/
is working on a reply...