C# Class SenseNet.Portal.Handlers.UploadHandler

Inheritance: IHttpHandler
Show file Open project: maxpavlov/FlexNet

Private Properties

Property Type Description
CheckAllowedContentType bool
CreateSpecificContent void
IsImageFileExtension bool
ModifyFile void
ModifySpecificContent void
RedirectToErrorPage void
SaveNewFile void
SetError void
TryToGetParentId string

Public Methods

Method Description
CreateBinaryData ( System.Web.HttpPostedFile file ) : BinaryData
ProcessRequest ( HttpContext context ) : void

Private Methods

Method Description
CheckAllowedContentType ( GenericContent parent, Node child, HttpContext context ) : bool
CreateSpecificContent ( HttpContext context, string contentTypeName, IFolder parentNode, System.Web.HttpPostedFile postedFile ) : void
IsImageFileExtension ( string fileName ) : bool
ModifyFile ( HttpContext context, System.Web.HttpPostedFile postedFile, IFolder parentNode, string path ) : void
ModifySpecificContent ( IFolder node, System.Web.HttpPostedFile file, string path ) : void
RedirectToErrorPage ( string errorMessage, HttpContext context ) : void
SaveNewFile ( HttpContext context, System.Web.HttpPostedFile postedFile, IFolder parentNode, string path ) : void
SetError ( HttpContext context, string message, int statusCode ) : void
TryToGetParentId ( HttpContext context ) : string

Method Details

CreateBinaryData() public static method

public static CreateBinaryData ( System.Web.HttpPostedFile file ) : BinaryData
file System.Web.HttpPostedFile
return SenseNet.ContentRepository.Storage.BinaryData

ProcessRequest() public method

public ProcessRequest ( HttpContext context ) : void
context System.Web.HttpContext
return void