Table of Contents

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[]

MediaExtensions

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

IsMediaFile(string)

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
To top