Class FileHelper
- Namespace
- Dynamicweb.Core.Helpers
- Assembly
- Dynamicweb.Core.dll
public static class FileHelper
- Inheritance
-
FileHelper
- Inherited Members
-
Properties
ImageExtensions
public static string[] ImageExtensions { get; }
Property Value
- string[]
public static IEnumerable<string> MediaExtensions { get; }
Property Value
- IEnumerable<string>
Methods
GetPreviewForFile(string)
public static string GetPreviewForFile(string filePath)
Parameters
filePath
string
Returns
- string
IsArchiveFile(string)
public static bool IsArchiveFile(string fileName)
Parameters
fileName
string
Returns
- bool
IsCodeFile(string)
public static bool IsCodeFile(string fileName)
Parameters
fileName
string
Returns
- bool
IsEditableFile(string)
public static bool IsEditableFile(string fileName)
Parameters
fileName
string
Returns
- bool
IsImageFile(string)
public static bool IsImageFile(string fileName)
Parameters
fileName
string
Returns
- bool
public static bool IsMediaFile(string fileName)
Parameters
fileName
string
Returns
- bool
IsResizableImageFile(string)
public static bool IsResizableImageFile(string fileName)
Parameters
fileName
string
Returns
- bool
IsTextFile(string)
public static bool IsTextFile(string fileName)
Parameters
fileName
string
Returns
- bool
IsValidFileName(string)
public static bool IsValidFileName(string fileName)
Parameters
fileName
string
Returns
- bool