Interface IFileManager
Assembly: DotNetNuke.dll
Syntax
public interface IFileManager
Properties
ContentTypes
Declaration
[Obsolete("Deprecated in DotNetNuke 7.4.2. It has been replaced by FileContentTypeManager.Instance.ContentTypes. Scheduled for removal in v10.0.0.")]
IDictionary<string, string> ContentTypes { get; }
Property Value
WhiteList
Declaration
FileExtensionWhitelist WhiteList { get; }
Property Value
Methods
AddFile(IFolderInfo, string, Stream)
Declaration
IFileInfo AddFile(IFolderInfo folder, string fileName, Stream fileContent)
Parameters
Returns
AddFile(IFolderInfo, string, Stream, bool)
Declaration
IFileInfo AddFile(IFolderInfo folder, string fileName, Stream fileContent, bool overwrite)
Parameters
Returns
AddFile(IFolderInfo, string, Stream, bool, bool, bool, string, int)
Declaration
IFileInfo AddFile(IFolderInfo folder, string fileName, Stream fileContent, bool overwrite, bool checkPermissions, bool ignoreWhiteList, string contentType, int createdByUserID)
Parameters
Returns
AddFile(IFolderInfo, string, Stream, bool, bool, string)
Declaration
IFileInfo AddFile(IFolderInfo folder, string fileName, Stream fileContent, bool overwrite, bool checkPermissions, string contentType)
Parameters
Returns
AddFile(IFolderInfo, string, Stream, bool, bool, string, int)
Declaration
IFileInfo AddFile(IFolderInfo folder, string fileName, Stream fileContent, bool overwrite, bool checkPermissions, string contentType, int createdByUserID)
Parameters
Returns
CopyFile(IFileInfo, IFolderInfo)
Declaration
IFileInfo CopyFile(IFileInfo file, IFolderInfo destinationFolder)
Parameters
Returns
DeleteFile(IFileInfo)
Declaration
void DeleteFile(IFileInfo file)
Parameters
DeleteFiles(IEnumerable<IFileInfo>)
Declaration
void DeleteFiles(IEnumerable<IFileInfo> files)
Parameters
FileExists(IFolderInfo, string)
Declaration
bool FileExists(IFolderInfo folder, string fileName)
Parameters
Returns
FileExists(IFolderInfo, string, bool)
Declaration
bool FileExists(IFolderInfo folder, string fileName, bool retrieveUnpublishedFiles)
Parameters
Returns
GetContentType(string)
Declaration
[Obsolete("Deprecated in DotNetNuke 7.4.2. It has been replaced by FileContentTypeManager.Instance.GetContentType(string extension). Scheduled for removal in v10.0.0.")]
string GetContentType(string extension)
Parameters
Type |
Name |
Description |
string |
extension |
|
Returns
GetFile(IFolderInfo, string)
Declaration
IFileInfo GetFile(IFolderInfo folder, string fileName)
Parameters
Returns
GetFile(IFolderInfo, string, bool)
Declaration
IFileInfo GetFile(IFolderInfo folder, string fileName, bool retrieveUnpublishedFiles)
Parameters
Returns
GetFile(int)
Declaration
IFileInfo GetFile(int fileID)
Parameters
Type |
Name |
Description |
int |
fileID |
|
Returns
GetFile(int, bool)
Declaration
IFileInfo GetFile(int fileID, bool retrieveUnpublishedFiles)
Parameters
Type |
Name |
Description |
int |
fileID |
|
bool |
retrieveUnpublishedFiles |
|
Returns
GetFile(int, string)
Declaration
IFileInfo GetFile(int portalId, string relativePath)
Parameters
Type |
Name |
Description |
int |
portalId |
|
string |
relativePath |
|
Returns
GetFile(int, string, bool)
Declaration
IFileInfo GetFile(int portalId, string relativePath, bool retrieveUnpublishedFiles)
Parameters
Type |
Name |
Description |
int |
portalId |
|
string |
relativePath |
|
bool |
retrieveUnpublishedFiles |
|
Returns
GetFileContent(IFileInfo)
Declaration
Stream GetFileContent(IFileInfo file)
Parameters
Returns
GetSeekableStream(Stream)
Declaration
Stream GetSeekableStream(Stream stream)
Parameters
Type |
Name |
Description |
Stream |
stream |
|
Returns
GetUrl(IFileInfo)
Declaration
string GetUrl(IFileInfo file)
Parameters
Returns
IsImageFile(IFileInfo)
Declaration
bool IsImageFile(IFileInfo file)
Parameters
Returns
MoveFile(IFileInfo, IFolderInfo)
Declaration
IFileInfo MoveFile(IFileInfo file, IFolderInfo destinationFolder)
Parameters
Returns
RenameFile(IFileInfo, string)
Declaration
IFileInfo RenameFile(IFileInfo file, string newFileName)
Parameters
Returns
SetAttributes(IFileInfo, FileAttributes)
Declaration
void SetAttributes(IFileInfo file, FileAttributes fileAttributes)
Parameters
UnzipFile(IFileInfo)
Declaration
void UnzipFile(IFileInfo file)
Parameters
UnzipFile(IFileInfo, IFolderInfo)
Declaration
void UnzipFile(IFileInfo file, IFolderInfo destinationFolder)
Parameters
UnzipFile(IFileInfo, IFolderInfo, IList<string>)
Declaration
int UnzipFile(IFileInfo file, IFolderInfo destinationFolder, IList<string> invalidFiles)
Parameters
Returns
UpdateFile(IFileInfo)
Declaration
IFileInfo UpdateFile(IFileInfo file)
Parameters
Returns
UpdateFile(IFileInfo, Stream)
Declaration
IFileInfo UpdateFile(IFileInfo file, Stream fileContent)
Parameters
Returns
WriteFile(IFileInfo, Stream)
Declaration
void WriteFile(IFileInfo file, Stream stream)
Parameters
WriteFileToResponse(IFileInfo, ContentDisposition)
Declaration
void WriteFileToResponse(IFileInfo file, ContentDisposition contentDisposition)
Parameters
Extension Methods