BUG - Bypass current issue with ContainerNames.Creators

This commit is contained in:
Jonathan Bourdon
2024-08-06 00:54:26 -04:00
parent 14bc4ce69b
commit db740c161c
2 changed files with 4 additions and 2 deletions

View File

@@ -38,8 +38,9 @@ public class ChangeBannerHandler(
return; return;
} }
// TODO: this upload should be done to the Creators container
var blobUrl = await blobStorage.UploadFileAsync( var blobUrl = await blobStorage.UploadFileAsync(
ContainerNames.Creators, ContainerNames.Users,
$"{request.CreatorId}/{SubDirectoryNames.Profile}/{CommonFileNames.BannerPicture}", $"{request.CreatorId}/{SubDirectoryNames.Profile}/{CommonFileNames.BannerPicture}",
request.File.OpenReadStream(), request.File.OpenReadStream(),
request.File.ContentType, request.File.ContentType,

View File

@@ -38,8 +38,9 @@ public class ChangeLogoHandler(
return; return;
} }
// TODO: this upload should be done to the Creators container
var blobUrl = await blobStorage.UploadFileAsync( var blobUrl = await blobStorage.UploadFileAsync(
ContainerNames.Creators, ContainerNames.Users,
$"{request.CreatorId}/{SubDirectoryNames.Profile}/{CommonFileNames.ProfilePicture}", $"{request.CreatorId}/{SubDirectoryNames.Profile}/{CommonFileNames.ProfilePicture}",
request.File.OpenReadStream(), request.File.OpenReadStream(),
request.File.ContentType, request.File.ContentType,