-
Notifications
You must be signed in to change notification settings - Fork 306
Expand file tree
/
Copy pathUploadRequest.cs
More file actions
24 lines (21 loc) · 795 Bytes
/
UploadRequest.cs
File metadata and controls
24 lines (21 loc) · 795 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using SixLabors.ImageSharp.Processing;
namespace CleanArchitecture.Blazor.Application.Common.Models;
public class UploadRequest
{
public UploadRequest(string fileName, UploadType uploadType, byte[] data, bool overwrite = false,string? folder=null)
{
FileName = fileName;
UploadType = uploadType;
Data = data;
Overwrite = overwrite;
Folder = folder;
}
public string FileName { get; set; }
public string? Extension { get; set; }
public UploadType UploadType { get; set; }
public bool Overwrite { get; set; }
public byte[] Data { get; set; }
public string? Folder { get; set; }
}