C# Класс RockWeb.FileUploader

Handles retrieving file data from storage
Наследование: IHttpHandler, IRequiresSessionState
Показать файл Открыть проект

Открытые методы

Метод Описание
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