summaryM:DotNetNuke.Common.Utilities.FileSystemUtils.UploadFile(System.String,System.Web.HttpPostedFile,System.String)

Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
[ObsoleteAttribute("Deprecated in DNN 6.0.  It has been replaced by FileManager.Instance.AddFile(IFolderInfo folder, string fileName, Stream fileContent, bool overwrite) ")]
public static string UploadFile(
	string RootPath,
	HttpPostedFile objHtmlInputFile,
	string NewFileName
)
Visual Basic
<EditorBrowsableAttribute(EditorBrowsableState.Never)> 
<ObsoleteAttribute("Deprecated in DNN 6.0.  It has been replaced by FileManager.Instance.AddFile(IFolderInfo folder, string fileName, Stream fileContent, bool overwrite) ")> 
Public Shared Function UploadFile ( 
	RootPath As String,
	objHtmlInputFile As HttpPostedFile,
	NewFileName As String
) As String

Parameters

RootPath
Type: System..::..String
paramRootPathM:DotNetNuke.Common.Utilities.FileSystemUtils.UploadFile(System.String,System.Web.HttpPostedFile,System.String)
objHtmlInputFile
Type: System.Web..::..HttpPostedFile
paramobjHtmlInputFileM:DotNetNuke.Common.Utilities.FileSystemUtils.UploadFile(System.String,System.Web.HttpPostedFile,System.String)
NewFileName
Type: System..::..String
paramNewFileNameM:DotNetNuke.Common.Utilities.FileSystemUtils.UploadFile(System.String,System.Web.HttpPostedFile,System.String)

Return Value

returnsM:DotNetNuke.Common.Utilities.FileSystemUtils.UploadFile(System.String,System.Web.HttpPostedFile,System.String)

See Also