C# Class Serenity.UploadHelper

Exibir arquivo Open project: volkanceylan/Serenity Class Usage Examples

Public Methods

Method Description
AddUploadInput ( UploadInputOptions options ) : jQueryObject
CheckImageConstraints ( UploadResponse file, ImageUploadEditorOptions opt ) : bool
ColorBox ( jQueryObject link, dynamic options ) : void
DbFileUrl ( string filename ) : string
FileNameSizeDisplay ( string name, long bytes ) : string
FileSizeDisplay ( long bytes ) : string
HasImageExtension ( string filename ) : bool
PopulateFileSymbols ( jQueryObject container, List items, bool displayOriginalName = false, string urlPrefix = null ) : void
ThumbFileName ( string filename ) : string

Method Details

AddUploadInput() public static method

public static AddUploadInput ( UploadInputOptions options ) : jQueryObject
options UploadInputOptions
return jQueryObject

CheckImageConstraints() public static method

public static CheckImageConstraints ( UploadResponse file, ImageUploadEditorOptions opt ) : bool
file UploadResponse
opt ImageUploadEditorOptions
return bool

ColorBox() public static method

public static ColorBox ( jQueryObject link, dynamic options ) : void
link jQueryObject
options dynamic
return void

DbFileUrl() public static method

public static DbFileUrl ( string filename ) : string
filename string
return string

FileNameSizeDisplay() public static method

public static FileNameSizeDisplay ( string name, long bytes ) : string
name string
bytes long
return string

FileSizeDisplay() public static method

public static FileSizeDisplay ( long bytes ) : string
bytes long
return string

HasImageExtension() public static method

public static HasImageExtension ( string filename ) : bool
filename string
return bool

PopulateFileSymbols() public static method

public static PopulateFileSymbols ( jQueryObject container, List items, bool displayOriginalName = false, string urlPrefix = null ) : void
container jQueryObject
items List
displayOriginalName bool
urlPrefix string
return void

ThumbFileName() public static method

public static ThumbFileName ( string filename ) : string
filename string
return string