Skip to content

Commit 719abf5

Browse files
committed
Update MediaPath docs for all versions
1 parent c6e6c97 commit 719abf5

File tree

4 files changed

+18
-18
lines changed
  • 10/umbraco-cms/extending/filesystemproviders
  • 13/umbraco-cms/extending/filesystemproviders
  • 14/umbraco-cms/extending/filesystemproviders
  • 15/umbraco-cms/extending/filesystemproviders

4 files changed

+18
-18
lines changed

10/umbraco-cms/extending/filesystemproviders/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,15 @@ By default the MediaPath scheme used by Umbraco is the `UniqueMediaPathScheme` t
145145

146146
`/media` is defined by the PhysicalFileSystem and 'dozdrg2f' is generated by the `UniqueMediaPathScheme`.
147147

148-
You can set the `MediaPathScheme` during composition, for example if you wanted to revert back to the V7 methodology in a migrated site:
148+
You can create your own logic for the path by implementing IMediaPathScheme and setting it during composition with:
149149

150-
```c#
151-
builder.Services.AddUnique<IMediaPathScheme, OriginalMediaPathScheme>();
150+
```csharp
151+
builder.Services.AddUnique<IMediaPathScheme, MyCustomMediaPathScheme>();
152152
```
153153

154-
And you could create your own logic for the path by implementing `IMediaPathScheme`.
154+
{% hint style="info" %}
155+
`OriginalMediaPathScheme` is deprecated as of Umbraco 9. If you are migrating from earlier versions, we recommend using `IMediaPathScheme` to implement your own logic.
156+
{% endhint %}
155157

156158
## Other IFileSystems
157159

13/umbraco-cms/extending/filesystemproviders/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,15 @@ By default the MediaPath scheme used by Umbraco is the `UniqueMediaPathScheme` t
144144

145145
`/media` is defined by the PhysicalFileSystem and 'dozdrg2f' is generated by the `UniqueMediaPathScheme`.
146146

147-
You can set the `MediaPathScheme` during composition, for example if you wanted to revert back to the V7 methodology in a migrated site:
147+
You can create your own logic for the path by implementing IMediaPathScheme and setting it during composition with:
148148

149-
```
150-
builder.Services.AddUnique<IMediaPathScheme, OriginalMediaPathScheme>();
149+
```csharp
150+
builder.Services.AddUnique<IMediaPathScheme, MyCustomMediaPathScheme>();
151151
```
152152

153-
And you could create your own logic for the path by implementing `IMediaPathScheme`.
153+
{% hint style="info" %}
154+
`OriginalMediaPathScheme` is deprecated as of Umbraco 9. If you are migrating from earlier versions, we recommend using `IMediaPathScheme` to implement your own logic.
155+
{% endhint %}
154156

155157
## Other IFileSystems
156158

14/umbraco-cms/extending/filesystemproviders/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,11 @@ By default the MediaPath scheme used by Umbraco is the `UniqueMediaPathScheme` t
146146

147147
`/media` is defined by the PhysicalFileSystem and 'dozdrg2f' is generated by the `UniqueMediaPathScheme`.
148148

149-
You can set the `MediaPathScheme` during composition, for example if you wanted to revert back to the V7 methodology in a migrated site:
149+
You can create your own logic for the path by implementing IMediaPathScheme and setting it during composition with:
150150

151+
```csharp
152+
builder.Services.AddUnique<IMediaPathScheme, MyCustomMediaPathScheme>();
151153
```
152-
builder.Services.AddUnique<IMediaPathScheme, OriginalMediaPathScheme>();
153-
```
154-
155-
And you could create your own logic for the path by implementing `IMediaPathScheme`.
156154

157155
## Other IFileSystems
158156

15/umbraco-cms/extending/filesystemproviders/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,11 @@ By default the MediaPath scheme used by Umbraco is the `UniqueMediaPathScheme` t
146146

147147
`/media` is defined by the PhysicalFileSystem and 'dozdrg2f' is generated by the `UniqueMediaPathScheme`.
148148

149-
You can set the `MediaPathScheme` during composition, for example if you wanted to revert back to the V7 methodology in a migrated site:
149+
You can create your own logic for the path by implementing IMediaPathScheme and setting it during composition with:
150150

151+
```csharp
152+
builder.Services.AddUnique<IMediaPathScheme, MyCustomMediaPathScheme>();
151153
```
152-
builder.Services.AddUnique<IMediaPathScheme, OriginalMediaPathScheme>();
153-
```
154-
155-
And you could create your own logic for the path by implementing `IMediaPathScheme`.
156154

157155
## Other IFileSystems
158156

0 commit comments

Comments
 (0)