Ensure creator related blobs are stored in the creator container

This commit is contained in:
2024-09-04 22:08:02 -04:00
parent 1fc6ddaf8d
commit 6dc83ff9bd
7 changed files with 7 additions and 10 deletions

View File

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

View File

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

View File

@@ -138,9 +138,8 @@ public sealed class PostContent(
IFormFile file,
CancellationToken ct = default)
{
// TODO: I would like us to use ContainerNames.Creators but it seems we are missing configurations @jbourdon
var url = await blobStorage.UploadFileAsync(
ContainerNames.Users,
ContainerNames.Creators,
$"{creatorId}/{SubDirectoryNames.Contents}/{contentId}/{file.FileName}",
file.OpenReadStream(),
file.ContentType,