HttpClient.AttachFile Method (String, String)

DCSoft.DBUtilityGeneric

HttpClientAttachFile Method (String, String)
在请求中添加要上传的文件

Namespace: DCSoft.Utility.Web
Assembly: DCSoft.Utility (in DCSoft.Utility.dll) Version: 0.0.0.0 (1.0.0.0)
Syntax
C#
public void AttachFile(
	string fileName,
	string fieldName
)

Parameters

fileName
Type: SystemString
要上传的文件路径
fieldName
Type: SystemString
文件字段的名称(相当于<input type=file name=fieldName>)里的fieldName)
See Also