Ensure creator related blobs are stored in the creator container
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user