File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 4 files changed +18
-18
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments