C# 클래스 Decision.Common.Filters.AllowUploadSpecialFilesOnlyAttribute

상속: System.Web.Mvc.ActionFilterAttribute
파일 보기 프로젝트 열기: rabbal/Decision

공개 메소드들

메소드 설명
AllowUploadSpecialFilesOnlyAttribute ( string extensionsWhiteList, bool justImage ) : System
IsImageFile ( System.Web.HttpPostedFileBase photoFile ) : bool
OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void

비공개 메소드들

메소드 설명
CanUpload ( string fileName ) : bool

메소드 상세

AllowUploadSpecialFilesOnlyAttribute() 공개 메소드

public AllowUploadSpecialFilesOnlyAttribute ( string extensionsWhiteList, bool justImage ) : System
extensionsWhiteList string
justImage bool
리턴 System

IsImageFile() 공개 정적인 메소드

public static IsImageFile ( System.Web.HttpPostedFileBase photoFile ) : bool
photoFile System.Web.HttpPostedFileBase
리턴 bool

OnActionExecuting() 공개 메소드

public OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutingContext
리턴 void