Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions 10/umbraco-cms/extending/filesystemproviders/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<IMediaPathScheme, OriginalMediaPathScheme>();
```csharp
builder.Services.AddUnique<IMediaPathScheme, MyCustomMediaPathScheme>();
```

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

Expand Down
10 changes: 6 additions & 4 deletions 13/umbraco-cms/extending/filesystemproviders/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<IMediaPathScheme, OriginalMediaPathScheme>();
```csharp
builder.Services.AddUnique<IMediaPathScheme, MyCustomMediaPathScheme>();
```

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

Expand Down
8 changes: 3 additions & 5 deletions 14/umbraco-cms/extending/filesystemproviders/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<IMediaPathScheme, MyCustomMediaPathScheme>();
```
builder.Services.AddUnique<IMediaPathScheme, OriginalMediaPathScheme>();
```

And you could create your own logic for the path by implementing `IMediaPathScheme`.

## Other IFileSystems

Expand Down
8 changes: 3 additions & 5 deletions 15/umbraco-cms/extending/filesystemproviders/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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<IMediaPathScheme, MyCustomMediaPathScheme>();
```
builder.Services.AddUnique<IMediaPathScheme, OriginalMediaPathScheme>();
```

And you could create your own logic for the path by implementing `IMediaPathScheme`.

## Other IFileSystems

Expand Down