From 719abf55397fe4ec7e1c93e0ad9520ff40f584cd Mon Sep 17 00:00:00 2001 From: sofietoft Date: Wed, 19 Feb 2025 05:51:15 +0100 Subject: [PATCH 1/2] Update MediaPath docs for all versions --- 10/umbraco-cms/extending/filesystemproviders/README.md | 10 ++++++---- 13/umbraco-cms/extending/filesystemproviders/README.md | 10 ++++++---- 14/umbraco-cms/extending/filesystemproviders/README.md | 8 +++----- 15/umbraco-cms/extending/filesystemproviders/README.md | 8 +++----- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/10/umbraco-cms/extending/filesystemproviders/README.md b/10/umbraco-cms/extending/filesystemproviders/README.md index 9ec99b024cd..54977270fea 100644 --- a/10/umbraco-cms/extending/filesystemproviders/README.md +++ b/10/umbraco-cms/extending/filesystemproviders/README.md @@ -145,13 +145,15 @@ By default the MediaPath scheme used by Umbraco is the `UniqueMediaPathScheme` t `/media` is defined by the PhysicalFileSystem and 'dozdrg2f' is generated by the `UniqueMediaPathScheme`. -You can set the `MediaPathScheme` during composition, for example if you wanted to revert back to the V7 methodology in a migrated site: +You can create your own logic for the path by implementing IMediaPathScheme and setting it during composition with: -```c# - builder.Services.AddUnique(); +```csharp +builder.Services.AddUnique(); ``` -And you could create your own logic for the path by implementing `IMediaPathScheme`. +{% hint style="info" %} +`OriginalMediaPathScheme` is deprecated as of Umbraco 9. If you are migrating from earlier versions, we recommend using `IMediaPathScheme` to implement your own logic. +{% endhint %} ## Other IFileSystems diff --git a/13/umbraco-cms/extending/filesystemproviders/README.md b/13/umbraco-cms/extending/filesystemproviders/README.md index 9913eb37658..3749c92b052 100644 --- a/13/umbraco-cms/extending/filesystemproviders/README.md +++ b/13/umbraco-cms/extending/filesystemproviders/README.md @@ -144,13 +144,15 @@ By default the MediaPath scheme used by Umbraco is the `UniqueMediaPathScheme` t `/media` is defined by the PhysicalFileSystem and 'dozdrg2f' is generated by the `UniqueMediaPathScheme`. -You can set the `MediaPathScheme` during composition, for example if you wanted to revert back to the V7 methodology in a migrated site: +You can create your own logic for the path by implementing IMediaPathScheme and setting it during composition with: -``` - builder.Services.AddUnique(); +```csharp +builder.Services.AddUnique(); ``` -And you could create your own logic for the path by implementing `IMediaPathScheme`. +{% hint style="info" %} +`OriginalMediaPathScheme` is deprecated as of Umbraco 9. If you are migrating from earlier versions, we recommend using `IMediaPathScheme` to implement your own logic. +{% endhint %} ## Other IFileSystems diff --git a/14/umbraco-cms/extending/filesystemproviders/README.md b/14/umbraco-cms/extending/filesystemproviders/README.md index 5ce6069051c..9807d2f7000 100644 --- a/14/umbraco-cms/extending/filesystemproviders/README.md +++ b/14/umbraco-cms/extending/filesystemproviders/README.md @@ -146,13 +146,11 @@ By default the MediaPath scheme used by Umbraco is the `UniqueMediaPathScheme` t `/media` is defined by the PhysicalFileSystem and 'dozdrg2f' is generated by the `UniqueMediaPathScheme`. -You can set the `MediaPathScheme` during composition, for example if you wanted to revert back to the V7 methodology in a migrated site: +You can create your own logic for the path by implementing IMediaPathScheme and setting it during composition with: +```csharp +builder.Services.AddUnique(); ``` - builder.Services.AddUnique(); -``` - -And you could create your own logic for the path by implementing `IMediaPathScheme`. ## Other IFileSystems diff --git a/15/umbraco-cms/extending/filesystemproviders/README.md b/15/umbraco-cms/extending/filesystemproviders/README.md index 5ce6069051c..9807d2f7000 100644 --- a/15/umbraco-cms/extending/filesystemproviders/README.md +++ b/15/umbraco-cms/extending/filesystemproviders/README.md @@ -146,13 +146,11 @@ By default the MediaPath scheme used by Umbraco is the `UniqueMediaPathScheme` t `/media` is defined by the PhysicalFileSystem and 'dozdrg2f' is generated by the `UniqueMediaPathScheme`. -You can set the `MediaPathScheme` during composition, for example if you wanted to revert back to the V7 methodology in a migrated site: +You can create your own logic for the path by implementing IMediaPathScheme and setting it during composition with: +```csharp +builder.Services.AddUnique(); ``` - builder.Services.AddUnique(); -``` - -And you could create your own logic for the path by implementing `IMediaPathScheme`. ## Other IFileSystems From 3270c65b0d47a48c4a41099d7f1e2bcf58a16ab9 Mon Sep 17 00:00:00 2001 From: sofietoft Date: Fri, 21 Feb 2025 09:43:27 +0100 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Esha Noronha <82437098+eshanrnh@users.noreply.github.com> --- 10/umbraco-cms/extending/filesystemproviders/README.md | 2 +- 13/umbraco-cms/extending/filesystemproviders/README.md | 2 +- 14/umbraco-cms/extending/filesystemproviders/README.md | 2 +- 15/umbraco-cms/extending/filesystemproviders/README.md | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/10/umbraco-cms/extending/filesystemproviders/README.md b/10/umbraco-cms/extending/filesystemproviders/README.md index 54977270fea..cf5613c9854 100644 --- a/10/umbraco-cms/extending/filesystemproviders/README.md +++ b/10/umbraco-cms/extending/filesystemproviders/README.md @@ -145,7 +145,7 @@ By default the MediaPath scheme used by Umbraco is the `UniqueMediaPathScheme` t `/media` is defined by the PhysicalFileSystem and 'dozdrg2f' is generated by the `UniqueMediaPathScheme`. -You can create your own logic for the path by implementing IMediaPathScheme and setting it during composition with: +You can create your own logic for the path by implementing `IMediaPathScheme` and setting it during composition with: ```csharp builder.Services.AddUnique(); diff --git a/13/umbraco-cms/extending/filesystemproviders/README.md b/13/umbraco-cms/extending/filesystemproviders/README.md index 3749c92b052..6168a7bbd31 100644 --- a/13/umbraco-cms/extending/filesystemproviders/README.md +++ b/13/umbraco-cms/extending/filesystemproviders/README.md @@ -144,7 +144,7 @@ By default the MediaPath scheme used by Umbraco is the `UniqueMediaPathScheme` t `/media` is defined by the PhysicalFileSystem and 'dozdrg2f' is generated by the `UniqueMediaPathScheme`. -You can create your own logic for the path by implementing IMediaPathScheme and setting it during composition with: +You can create your own logic for the path by implementing `IMediaPathScheme` and setting it during composition with: ```csharp builder.Services.AddUnique(); diff --git a/14/umbraco-cms/extending/filesystemproviders/README.md b/14/umbraco-cms/extending/filesystemproviders/README.md index 9807d2f7000..18b491480c0 100644 --- a/14/umbraco-cms/extending/filesystemproviders/README.md +++ b/14/umbraco-cms/extending/filesystemproviders/README.md @@ -146,7 +146,7 @@ By default the MediaPath scheme used by Umbraco is the `UniqueMediaPathScheme` t `/media` is defined by the PhysicalFileSystem and 'dozdrg2f' is generated by the `UniqueMediaPathScheme`. -You can create your own logic for the path by implementing IMediaPathScheme and setting it during composition with: +You can create your own logic for the path by implementing `IMediaPathScheme` and setting it during composition with: ```csharp builder.Services.AddUnique(); diff --git a/15/umbraco-cms/extending/filesystemproviders/README.md b/15/umbraco-cms/extending/filesystemproviders/README.md index 9807d2f7000..18b491480c0 100644 --- a/15/umbraco-cms/extending/filesystemproviders/README.md +++ b/15/umbraco-cms/extending/filesystemproviders/README.md @@ -146,7 +146,7 @@ By default the MediaPath scheme used by Umbraco is the `UniqueMediaPathScheme` t `/media` is defined by the PhysicalFileSystem and 'dozdrg2f' is generated by the `UniqueMediaPathScheme`. -You can create your own logic for the path by implementing IMediaPathScheme and setting it during composition with: +You can create your own logic for the path by implementing `IMediaPathScheme` and setting it during composition with: ```csharp builder.Services.AddUnique();