C# Class Randao.Core.Extensions.HttpPostedFileExtensions

Mostra file Open project: fds/DKBD

Public Methods

Method Description
CheckType ( this file ) : bool

检验文件类型

GetExtName ( this file ) : string

获取后缀

SaveAvatarPhoto ( this file, string dir ) : ImageSize

Private Methods

Method Description
SaveThumbnailImage ( this file, string filename, string ext, int width, int height, Thumbnail ThumbnailMode ) : string

Method Details

CheckType() public static method

检验文件类型
public static CheckType ( this file ) : bool
file this
return bool

GetExtName() public static method

获取后缀
public static GetExtName ( this file ) : string
file this
return string

SaveAvatarPhoto() public static method

public static SaveAvatarPhoto ( this file, string dir ) : ImageSize
file this
dir string
return ImageSize