machenyang лет назад: 8
Родитель
Сommit
e5a71fbced

+ 10 - 2
codegit/CallCenterApi/CallCenterApi.Interface/CallCenterApi.Interface/Controllers/IVRWordsController.cs

@@ -380,9 +380,17 @@ namespace CallCenterApi.Interface.Controllers
380 380
 
381 381
                 #region 保存原文件到本地指定目录
382 382
                 //string physicalpath = Server.MapPath(savedir + fullFileName);
383
-                string physicalpath = savedir + fullFileName;
384
-                //20180207 本地不再保存
383
+                //string physicalpath = savedir + fullFileName;
384
+                //20180207 本地不再保存 保存到项目中
385 385
                 //_upFile.SaveAs(physicalpath);
386
+                string dirpath = Server.MapPath(this.Request.ApplicationPath + "\\auoupload");
387
+                if (!System.IO.Directory.Exists(dirpath))
388
+                {
389
+                    System.IO.Directory.CreateDirectory(dirpath);
390
+                }
391
+                string path = this.Request.ApplicationPath + "/auoupload/" + fullFileName;
392
+                string physicalpath = Server.MapPath(path);
393
+                _upFile.SaveAs(physicalpath);
386 394
                 #endregion
387 395
 
388 396
                 #region 修改音频格式