Table of Contents

Class FileHelper

Namespace
InSite.Common.Web.Infrastructure
Assembly
InSite.UI.dll
public static class FileHelper
Inheritance
FileHelper
Inherited Members

Properties

Provider

public static FileProvider Provider { get; }

Property Value

FileProvider

UserUpload

public static UserUploadManager UserUpload { get; }

Property Value

UserUploadManager

Methods

AdjustFileName(string, bool, bool)

public static string AdjustFileName(string fileName, bool toLower = true, bool allowDot = true)

Parameters

fileName string
toLower bool
allowDot bool

Returns

string

GetDescriptor(string)

public static FileDescriptor GetDescriptor(string url)

Parameters

url string

Returns

FileDescriptor

GetSurveyUploadPath(Guid, string)

public static string GetSurveyUploadPath(Guid identifier, string subtype)

Parameters

identifier Guid
subtype string

Returns

string

GetSurveyUploadPath(int, string)

public static string GetSurveyUploadPath(int key, string subtype)

Parameters

key int
subtype string

Returns

string

GetUrl(string)

public static string GetUrl(string path)

Parameters

path string

Returns

string

IsFileExists(string)

public static bool IsFileExists(string url)

Parameters

url string

Returns

bool

IsStandardFileName(string)

public static bool IsStandardFileName(string fileName)

Parameters

fileName string

Returns

bool