Implemented zip and tar compressing and decompressing. Implemented chunked file uploading

This commit is contained in:
2025-03-24 22:15:05 +01:00
parent 4046579c42
commit f56f94a03b
18 changed files with 573 additions and 55 deletions

View File

@@ -0,0 +1,14 @@
using System.ComponentModel.DataAnnotations;
namespace MoonlightServers.Shared.Http.Requests.Client.Servers.Files;
public class ServerFilesCompressRequest
{
[Required(ErrorMessage = "You need to specify a type")]
public string Type { get; set; }
public string[] Items { get; set; } = [];
[Required(ErrorMessage = "You need to specify a destination")]
public string Destination { get; set; }
}

View File

@@ -0,0 +1,15 @@
using System.ComponentModel.DataAnnotations;
namespace MoonlightServers.Shared.Http.Requests.Client.Servers.Files;
public class ServerFilesDecompressRequest
{
[Required(ErrorMessage = "You need to specify a type")]
public string Type { get; set; }
[Required(ErrorMessage = "You need to specify a path")]
public string Path { get; set; }
[Required(ErrorMessage = "You need to specify a destination")]
public string Destination { get; set; }
}