UploadFile pocesses a single file

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, bool checkPermissions, string contentType) ")]
public static string CreateFileFromString(
	string rootPath,
	string fileName,
	string fileData,
	string contentType,
	string newFileName,
	bool unzip
)
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, bool checkPermissions, string contentType) ")> 
Public Shared Function CreateFileFromString ( 
	rootPath As String,
	fileName As String,
	fileData As String,
	contentType As String,
	newFileName As String,
	unzip As Boolean
) As String

Parameters

rootPath
Type: System..::..String
The folder where the file will be put
fileName
Type: System..::..String
The file name
fileData
Type: System..::..String
Content of the file
contentType
Type: System..::..String
Type of content, ie: text/html
newFileName
Type: System..::..String
paramnewFileNameM:DotNetNuke.Common.Utilities.FileSystemUtils.CreateFileFromString(System.String,System.String,System.String,System.String,System.String,System.Boolean)
unzip
Type: System..::..Boolean
paramunzipM:DotNetNuke.Common.Utilities.FileSystemUtils.CreateFileFromString(System.String,System.String,System.String,System.String,System.String,System.Boolean)

Return Value

returnsM:DotNetNuke.Common.Utilities.FileSystemUtils.CreateFileFromString(System.String,System.String,System.String,System.String,System.String,System.Boolean)

Remarks