添加项目文件。
This commit is contained in:
40
Atomx.Common/Configuration/UploadConfig.cs
Normal file
40
Atomx.Common/Configuration/UploadConfig.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
namespace Atomx.Common.Configuration
|
||||
{
|
||||
public class UploadConfig
|
||||
{
|
||||
/// <summary>
|
||||
/// 图片文件访问域名
|
||||
/// </summary>
|
||||
public string ImageDomain { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 上传图片最大限制
|
||||
/// </summary>
|
||||
public int ImageMaxSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上传文件最大限制
|
||||
/// </summary>
|
||||
public int FileMaxSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 允许上传图片类型
|
||||
/// </summary>
|
||||
public string ImageTypes { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 允许上传文件类型
|
||||
/// </summary>
|
||||
public string FileTypes { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 远程图片是否自动保存
|
||||
/// </summary>
|
||||
public bool RemoteAutoDownloadSave { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 启用云对象存储
|
||||
/// </summary>
|
||||
public bool StorageServiceEnabled { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user