fa64f0c6d5
```csharp // 使用默认的Kestrel 服务器部署,将默认限制最大文件的上传,使用这个取消限制 [DisableRequestSizeLimit] [HttpPost("/UploadFile")] public async Task<IActionResult> UploadFile(IFormFile file) { ```
34 lines
491 B
C#
34 lines
491 B
C#
namespace Common;
|
|
|
|
public enum SyncMsgType
|
|
{
|
|
Error = 0,
|
|
General = 1,
|
|
|
|
//进度消息
|
|
Process = 2,
|
|
|
|
//文件展示消息
|
|
DirFileDiff = 3
|
|
}
|
|
|
|
public enum SyncProcessStep
|
|
{
|
|
Connect = 1,
|
|
DeployProject = 2,
|
|
DiffFileAndPack = 3,
|
|
PackSqlServer = 4,
|
|
UploadAndUnpack = 5,
|
|
Publish = 6,
|
|
Close = 7
|
|
}
|
|
|
|
public class SyncMsg
|
|
{
|
|
public SyncMsgType Type { get; set; }
|
|
|
|
public SyncProcessStep Step { get; set; }
|
|
|
|
public required string Body { get; set; }
|
|
}
|