This commit is contained in:
Zeeshaun
2026-04-28 10:08:26 -05:00
parent 7802d1b710
commit 43961b78aa
2 changed files with 0 additions and 7 deletions
@@ -44,12 +44,6 @@ namespace LCU.Api.Internal.FileOperations.Services.FileActionServices
{
try
{
if (request.IsBinary)
{
File.WriteAllBytes(request.FullFilePath, Convert.FromBase64String(request.FileData));
return;
}
File.WriteAllText(request.FullFilePath, request.FileData);
}
catch (Exception exception)
@@ -14,7 +14,6 @@ namespace LCU.Library.Internal.FileOperationsModels.Models
public string Extension { get; set; }
[Required(ErrorMessage = "FileData is required.")]
public string FileData { get; set; }
public bool IsBinary { get; set; } = false;
public bool Overwrite { get; set; } = false;
[NotMapped]