Skip to content

Commit

Permalink
Make OwnerSignature, CipherHash and EncryptedProperties base64 string…
Browse files Browse the repository at this point in the history
…s again
  • Loading branch information
MH321Productions committed Jan 24, 2024
1 parent 15e445c commit 6c044f6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ public async Task<IActionResult> UploadFile([FromForm] CreateFileDTO dto, Cancel
{
FileContent = inputStream.ToArray(),
ExpiresAt = dto.ExpiresAt,
CipherHash = dto.CipherHash,
CipherHash = UrlBase64.Decode(dto.CipherHash),
Owner = dto.Owner,
OwnerSignature = dto.OwnerSignature,
EncryptedProperties = dto.EncryptedProperties
OwnerSignature = UrlBase64.Decode(dto.OwnerSignature),
EncryptedProperties = UrlBase64.Decode(dto.EncryptedProperties)
};

var response = await _mediator.Send(command, cancellationToken);
Expand Down
6 changes: 3 additions & 3 deletions Modules/Files/src/Files.ConsumerApi/DTOs/CreateFileDTO.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ public class CreateFileDTO
{
public required IFormFile Content { get; set; }
public required IdentityAddress Owner { get; set; }
public required byte[] OwnerSignature { get; set; }
public required string OwnerSignature { get; set; }

public required byte[] CipherHash { get; set; }
public required string CipherHash { get; set; }

public required DateTime ExpiresAt { get; set; }

public required byte[] EncryptedProperties { get; set; }
public required string EncryptedProperties { get; set; }
}

0 comments on commit 6c044f6

Please sign in to comment.