SVN r560
SVN-Revision: r560
This commit is contained in:
@@ -2986,8 +2986,10 @@ namespace Lskj.Control.Model
|
||||
string webpath = HttpUtility.UrlEncode(deleteRow["webpath"] + "");
|
||||
//删除文件
|
||||
string deleteUrl = "{0}Api/FileUploadApi.ashx?fileId={1}&filename={2}&method={3}";
|
||||
deleteUrl = string.Format(deleteUrl, SystemInfo.Instance.OAUrl, field, webpath, "DoDelete");
|
||||
UploadFileUtil.DeleteFile(token, deleteUrl, out string deleteRtnMsg);
|
||||
HttpHelper.Setting("application/x-www-form-urlencoded", null, null);
|
||||
Dictionary<string, string> deleteHeaderDic = new Dictionary<string, string>();
|
||||
deleteHeaderDic.Add("Authorization", $"Bearer {token}");
|
||||
HttpHelper.Post(deleteUrl, "", null, deleteHeaderDic, out string deleteResult);
|
||||
}
|
||||
}
|
||||
byte[] fileBytes = UploadFileUtil.ConvertFileToBytes(filePath);
|
||||
|
||||
Reference in New Issue
Block a user