FileUpHelper.UploadFile Method (String, Int32, String[], HtmlInputFile, String, Int32)

HD.Common

FileUpHelperUploadFile Method (String, Int32, String, HtmlInputFile, String, Int32) Helper帮助文档
上传文件

Namespace: HD.Common
Assembly: HD.Common (in HD.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax

public string UploadFile(
	string filePath,
	int maxSize,
	string[] fileType,
	HtmlInputFile TargetFile,
	out string saveFileName,
	out int fileSize
)
Public Function UploadFile ( 
	filePath As String,
	maxSize As Integer,
	fileType As String(),
	TargetFile As HtmlInputFile,
	<OutAttribute> ByRef saveFileName As String,
	<OutAttribute> ByRef fileSize As Integer
) As String
public:
String^ UploadFile(
	String^ filePath, 
	int maxSize, 
	array<String^>^ fileType, 
	HtmlInputFile^ TargetFile, 
	[OutAttribute] String^% saveFileName, 
	[OutAttribute] int% fileSize
)
member UploadFile : 
        filePath : string * 
        maxSize : int * 
        fileType : string[] * 
        TargetFile : HtmlInputFile * 
        saveFileName : string byref * 
        fileSize : int byref -> string 

Parameters

filePath
Type: SystemString
保存文件地址
maxSize
Type: SystemInt32
文件最大大小
fileType
Type: SystemString
文件后缀类型
TargetFile
Type: System.Web.UI.HtmlControlsHtmlInputFile
控件名
saveFileName
Type: SystemString
保存后的文件名和地址
fileSize
Type: SystemInt32
文件大小

Return Value

Type: String

[Missing <returns> documentation for "M:HD.Common.FileUpHelper.UploadFile(System.String,System.Int32,System.String[],System.Web.UI.HtmlControls.HtmlInputFile,System.String@,System.Int32@)"]

See Also

Reference