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

HD.Common

FileUpHelperUploadFile Method (String, Int32, String, String, HtmlInputFile) 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,
	string filename,
	HtmlInputFile TargetFile
)
Public Function UploadFile ( 
	filePath As String,
	maxSize As Integer,
	fileType As String(),
	filename As String,
	TargetFile As HtmlInputFile
) As String
public:
String^ UploadFile(
	String^ filePath, 
	int maxSize, 
	array<String^>^ fileType, 
	String^ filename, 
	HtmlInputFile^ TargetFile
)
member UploadFile : 
        filePath : string * 
        maxSize : int * 
        fileType : string[] * 
        filename : string * 
        TargetFile : HtmlInputFile -> string 

Parameters

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

Return Value

Type: String

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

See Also

Reference