From 9be4ae0a498ae10554af11ad064b05a72c25131e Mon Sep 17 00:00:00 2001 From: qwj <qwjzorro@163.com> Date: 星期三, 16 八月 2023 14:46:49 +0800 Subject: [PATCH] 更新上传指定路径 --- DocumentFile.Service/Controllers/DocumentController.cs | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DocumentFile.Service/Controllers/DocumentController.cs b/DocumentFile.Service/Controllers/DocumentController.cs index 57da744..1046bff 100644 --- a/DocumentFile.Service/Controllers/DocumentController.cs +++ b/DocumentFile.Service/Controllers/DocumentController.cs @@ -31,7 +31,7 @@ ReturnMsg msg = new ReturnMsg(); if(formFile.Length>0) { - msg = await this._uploadService.HandleUploadTemplateFile(formFile,code); + msg = await this._uploadService.HandleUploadWordFile(formFile,code,""); } else { @@ -46,12 +46,12 @@ /// </summary> /// <returns></returns> [HttpPost] - public async Task<IActionResult> UploadDocInstance([FromForm] string code, IFormFile formFile) + public async Task<IActionResult> UploadDocInstance([FromForm] string code, [FromForm] string path, IFormFile formFile) { ReturnMsg msg = new ReturnMsg(); if (formFile.Length > 0) { - msg = await this._uploadService.HandleUploadWordFile(formFile, code); + msg = await this._uploadService.HandleUploadWordFile(formFile, code,path); } else { -- Gitblit v1.9.1