diff --git a/aspnet-core/modules/FileManagement/src/Lion.AbpPro.FileManagement.HttpApi/Files/FileController.cs b/aspnet-core/modules/FileManagement/src/Lion.AbpPro.FileManagement.HttpApi/Files/FileController.cs index b75605e4..05f0bceb 100644 --- a/aspnet-core/modules/FileManagement/src/Lion.AbpPro.FileManagement.HttpApi/Files/FileController.cs +++ b/aspnet-core/modules/FileManagement/src/Lion.AbpPro.FileManagement.HttpApi/Files/FileController.cs @@ -20,7 +20,7 @@ public class FileController : AbpController, IFileAppService return await _fileAppService.PageAsync(input); } - [HttpPost("Upload")] + [HttpPut("Upload")] [SwaggerOperation(summary: "上传文件", Tags = new[] { "Files" })] public async Task UploadAsync(List files) { @@ -36,7 +36,7 @@ public class FileController : AbpController, IFileAppService } - [HttpPost("Download")] + [HttpPut("Download")] [SwaggerOperation(summary: "下载文件", Tags = new[] { "Files" })] public Task DownloadAsync(DownloadFileObjectInput input) {