Implemented zip and tar compressing and decompressing. Implemented chunked file uploading
This commit is contained in:
@@ -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; }
|
||||
}
|
||||
@@ -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; }
|
||||
}
|
||||
Reference in New Issue
Block a user