Adds a File
Namespace: DotNetNuke.Common.UtilitiesAssembly: 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 void AddFile( string FileName, int PortalId, string Folder, string HomeDirectoryMapPath, string contentType ) |
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 Sub AddFile ( FileName As String, PortalId As Integer, Folder As String, HomeDirectoryMapPath As String, contentType As String ) |
Parameters
- FileName
- Type: System..::..String
File name
- PortalId
- Type: System..::..Int32
The Id of the Portal
- Folder
- Type: System..::..String
the folder to save file
- HomeDirectoryMapPath
- Type: System..::..String
paramHomeDirectoryMapPathM:DotNetNuke.Common.Utilities.FileSystemUtils.AddFile(System.String,System.Int32,System.String,System.String,System.String)
- contentType
- Type: System..::..String
The type of the content
Remarks
This method adds a new file