diff --git a/TradeManage/GlobalAshx/AjaxFileUpload.ashx.cs b/TradeManage/GlobalAshx/AjaxFileUpload.ashx.cs index b162bfc..8e8c0fb 100644 --- a/TradeManage/GlobalAshx/AjaxFileUpload.ashx.cs +++ b/TradeManage/GlobalAshx/AjaxFileUpload.ashx.cs @@ -5,6 +5,8 @@ using System.Web; using System.IO; using System.Web.Script.Serialization; using System.Drawing; +using NetLibrary.Log; +using Newtonsoft.Json; namespace TradeManage.GlobalAshx { @@ -48,6 +50,7 @@ namespace TradeManage.GlobalAshx md.InUserId = 0; md.CompanyId = 0; int id =0; + ErrorFollow.TraceWrite("上传文件", "JC_Resource:" + new JavaScriptSerializer().Serialize(md), DirectoryName); if (fize < 500000) { id = obj.SaveResource(md); diff --git a/TradeManageNew/GlobalAshx/AjaxFileUpload.ashx.cs b/TradeManageNew/GlobalAshx/AjaxFileUpload.ashx.cs index 2b9765d..c99328b 100644 --- a/TradeManageNew/GlobalAshx/AjaxFileUpload.ashx.cs +++ b/TradeManageNew/GlobalAshx/AjaxFileUpload.ashx.cs @@ -56,7 +56,7 @@ namespace TradeManageNew.GlobalAshx //{ // id = obj.SaveResource(md); //} - ErrorFollow.TraceWrite("上传文件", "JC_Resource:" + JsonConvert.SerializeObject(md), DirectoryName); + //ErrorFollow.TraceWrite("上传文件", "JC_Resource:" + JsonConvert.SerializeObject(md), DirectoryName); var model = new { Id = id, FileName = FName, FileUrl = md.FileUrl, FileSize = files[0].InputStream.Length };