HttpClient.AttachFile Method (Byte[], String, String)

DCSoft.DBUtilityGeneric

HttpClientAttachFile Method (Byte, 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(
	byte[] data,
	string fileName,
	string fieldName
)

Parameters

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