C# 클래스 RockWeb.FileUploader

Handles retrieving file data from storage
상속: IHttpHandler, IRequiresSessionState
파일 보기 프로젝트 열기: CentralAZ/Rockit-CentralAZ

공개 메소드들

메소드 설명
GetFileBytes ( HttpContext context, System.Web.HttpPostedFile uploadedFile ) : byte[]

Gets the file bytes

ProcessRequest ( HttpContext context ) : void

Enables processing of HTTP Web requests by a custom HttpHandler that implements the T:System.Web.IHttpHandler interface.

ValidateFileType ( HttpContext context, System.Web.HttpPostedFile uploadedFile ) : void

Validates the type of the file.

비공개 메소드들

메소드 설명
ProcessBinaryFile ( HttpContext context, System.Web.HttpPostedFile uploadedFile ) : void

Processes the binary file.

ProcessContentFile ( HttpContext context, System.Web.HttpPostedFile uploadedFile ) : void

Processes the content file.

메소드 상세

GetFileBytes() 공개 메소드

Gets the file bytes
public GetFileBytes ( HttpContext context, System.Web.HttpPostedFile uploadedFile ) : byte[]
context System.Web.HttpContext The context.
uploadedFile System.Web.HttpPostedFile The uploaded file.
리턴 byte[]

ProcessRequest() 공개 메소드

Enables processing of HTTP Web requests by a custom HttpHandler that implements the T:System.Web.IHttpHandler interface.
Must be logged in
public ProcessRequest ( HttpContext context ) : void
context System.Web.HttpContext An object that provides references to the intrinsic server objects (for example, Request, Response, Session, and Server) used to service HTTP requests.
리턴 void

ValidateFileType() 공개 메소드

Validates the type of the file.
Filetype not allowed
public ValidateFileType ( HttpContext context, System.Web.HttpPostedFile uploadedFile ) : void
context System.Web.HttpContext The context.
uploadedFile System.Web.HttpPostedFile The uploaded file.
리턴 void