C# Class Kooboo.Commerce.Handlers.FileType

Exibir arquivo Open project: Kooboo/Ecommerce

Public Methods

Method Description
FileType ( ) : System
FileType ( string code, string name, string regex, int limitSize, bool showPreview ) : System
GetFileType ( string ext ) : string
GetFriendlyFileSize ( int fileSize ) : string
IsImage ( string fileName ) : bool

Method Details

FileType() public method

public FileType ( ) : System
return System

FileType() public method

public FileType ( string code, string name, string regex, int limitSize, bool showPreview ) : System
code string
name string
regex string
limitSize int
showPreview bool
return System

GetFileType() public static method

public static GetFileType ( string ext ) : string
ext string
return string

GetFriendlyFileSize() public static method

public static GetFriendlyFileSize ( int fileSize ) : string
fileSize int
return string

IsImage() public static method

public static IsImage ( string fileName ) : bool
fileName string
return bool