File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 88using SixLabors . ImageSharp . Web . Resolvers ;
99using SixLabors . ImageSharp . Web . Resolvers . AWS ;
1010using Umbraco . Community . FileSystemProviders . B2 . Models ;
11+ using Umbraco . Extensions ;
1112
1213namespace Umbraco . Community . FileSystemProviders . B2 ;
1314
@@ -21,6 +22,7 @@ public class B2FileSystemImageCache(
2122
2223 public virtual async Task < IImageCacheResolver ? > GetAsync ( string key )
2324 {
25+ key = Path . Combine ( "cache/" , key ) ;
2426 var request = new GetObjectMetadataRequest
2527 {
2628 BucketName = b2Options . Value . BucketName ,
@@ -42,6 +44,7 @@ public class B2FileSystemImageCache(
4244
4345 public virtual async Task SetAsync ( string key , Stream stream , ImageCacheMetadata metadata )
4446 {
47+ key = Path . Combine ( "cache/" , key ) ;
4548 var request = new PutObjectRequest
4649 {
4750 BucketName = options . Value . BucketName ,
You can’t perform that action at this time.
0 commit comments