Show / Hide Table of Contents

Class FileExtensionValidator

Inheritance
object
FileExtensionValidator
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: SuperOffice.Util
Assembly: SoCore.dll
Syntax
public sealed class FileExtensionValidator

Constructors

FileExtensionValidator(string)

Initialize with the given preference value. Callers should send the preference value for System.UnsafeFileTypes.

new FileExtensionValidator(
    SoPreference.GetString(
        UserPreferenceStrings.System.Section,
        UserPreferenceStrings.System.UnsafeFileTypes,
        UserPreferenceDefaults.UnsafeFileTypes
    )
);
Declaration
public FileExtensionValidator(string prefValue)
Parameters
Type Name Description
string prefValue

Methods

IsSafe(string)

Returns true if the filename is safe to upload.

Declaration
public bool IsSafe(string filename)
Parameters
Type Name Description
string filename
Returns
Type Description
bool

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top