修改传输接口中文件的文件名

This commit is contained in:
范露尧
2023-03-13 13:19:54 +08:00
parent e9935b16a9
commit 3cd51372b1

View File

@@ -71,7 +71,7 @@ namespace Getf_Service_Transfer_Client_Service_HttpHandler
httpRequst.SetContentType("multipart/form-data"); httpRequst.SetContentType("multipart/form-data");
if (bodyData != null) if (bodyData != null)
{ {
httpRequst.SetFiles(HttpFile.Create("file", data, "image.png")); httpRequst.SetFiles(HttpFile.Create("file", data, bodyData["fileName"].ToString()));
if (bodyData["commond"] != null) if (bodyData["commond"] != null)
{ {
var dic = new Dictionary<string, object>(); var dic = new Dictionary<string, object>();