Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Is it possible to configure, where to store media items in U8?
Im looking for somethimg simular to this configurations:
https://our.umbraco.com/documentation/reference/config/filesystemproviders/
<?xml version="1.0"?> <FileSystemProviders> <!-- Media --> <Provider alias="media" type="Umbraco.Core.IO.PhysicalFileSystem, Umbraco.Core"> <Parameters> <add key="virtualRoot" value="~/media/" /> </Parameters> </Provider> </FileSystemProviders>
Hi Kasper,
in Umbraco 8 you will have to use Composer to achieve this:
public class MediaComposer : IUserComposer { public void Compose(Composition composition) { composition.SetMediaFileSystem(() => new PhysicalFileSystem("~/CustomMedia")); } }
Found this here: https://our.umbraco.com/forum/umbraco-8/96889-filesystemproviders-section-umbraco-8-to-change-media-location
You can find out more in the docs: https://our.umbraco.com/documentation/Implementation/Composing/
~ Jonathan
Thanks - spot on :)
If one where to locate the media on a shared server, is that the same implementation with different path?
They say in the docs to fix it with Composer
But where do you add the file containing the code?
Why the docs are so short and not enough
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
FileSystemProviders - Media in different folder
Is it possible to configure, where to store media items in U8?
Im looking for somethimg simular to this configurations:
https://our.umbraco.com/documentation/reference/config/filesystemproviders/
Hi Kasper,
in Umbraco 8 you will have to use Composer to achieve this:
Found this here: https://our.umbraco.com/forum/umbraco-8/96889-filesystemproviders-section-umbraco-8-to-change-media-location
You can find out more in the docs: https://our.umbraco.com/documentation/Implementation/Composing/
~ Jonathan
Thanks - spot on :)
If one where to locate the media on a shared server, is that the same implementation with different path?
They say in the docs to fix it with Composer
But where do you add the file containing the code?
Why the docs are so short and not enough
is working on a reply...