You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using Furion.ConfigurableOptions;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Common.Util
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 文件上传配置选项
|
|
|
|
|
/// </summary>
|
|
|
|
|
public sealed class UploadOptions : IConfigurableOptions
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 路径
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Path { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 大小
|
|
|
|
|
/// </summary>
|
|
|
|
|
public long MaxSize { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 上传格式
|
|
|
|
|
/// </summary>
|
|
|
|
|
public List<string> ContentType { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 启用文件MD5验证
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <remarks>防止重复上传</remarks>
|
|
|
|
|
public bool EnableMd5 { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|