| | |
| | | ReturnMsg msg = new ReturnMsg(); |
| | | if(formFile.Length>0) |
| | | { |
| | | msg = await this._uploadService.HandleUploadTemplateFile(formFile,code); |
| | | msg = await this._uploadService.HandleUploadWordFile(formFile,code,""); |
| | | } |
| | | else |
| | | { |
| | |
| | | /// </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 |
| | | { |