mirror of
https://github.com/Artemis-RGB/Artemis
synced 2025-12-13 05:48:35 +00:00
Workshop - Added image management to existing entries Workshop - Fixed pagination in layouts page
18 lines
596 B
C#
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; }
|
|
} |