1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00
RobertBeekman 78b96deeab Router - Added reload
Workshop - Added image management to existing entries
Workshop - Fixed pagination in layouts page
2024-01-28 22:43:35 +01:00

18 lines
596 B
C#

namespace Artemis.WebClient.Workshop.Handlers.UploadHandlers;
public class ImageUploadRequest
{
public const long MAX_FILE_SIZE = 10 * 1024 * 1024; // 10 MB
public ImageUploadRequest(Stream file, string name, string? description)
{
File = file;
Name = name.Length > 50 ? name.Substring(0, 50) : name;
if (description != null)
Description = description.Length > 150 ? description.Substring(0, 150) : description;
}
public Stream File { get; set; }
public string Name { get; set; }
public string? Description { get; set; }
}