Updating
This commit is contained in:
-6
@@ -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)
|
||||
|
||||
-1
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user