Main class of EAUpload component. EAUploadModule is a .NET HTTP Module designed to intercept page requests and preprocess them before passing them on to ASP.NET.
Namespace:
EasyAlgo.EAUploadAssembly: EasyAlgo.EAUpload (in EasyAlgo.EAUpload.dll)
Version: 1.3.0.0
Syntax
| C# |
|---|
public sealed class EAUploadModule : IHttpModule |
| Visual Basic (Declaration) |
|---|
Public NotInheritable Class EAUploadModule _ Implements IHttpModule |
Remarks
EAUploadModule intercepts and processes POST requests, with "multipart/form-data" content type, to any or specified resources in ASP.NET application.
For correct work of EAUpload component you should attach EAUploadModule to the ASP.NET request pipeline. To do so, you should define EAUploadModule in the httpModules section of web.config file:
CopyXML
<?xml version="1.0" encoding="utf-8" ?> <configuration> ... <system.web> ... <httpModules> <add name="EAUploadModule" type="EasyAlgo.EAUpload.EAUploadModule, EasyAlgo.EAUpload"/> </httpModules>
Examples
The following example overrides the Init method and changes common environment of EAUpload component.
CopyC#
CopyVB.NET
// Global.asax.cs public class Global : System.Web.HttpApplication { ... public override void Init() { License.SerialKey = "..."; EAUploadModule.CommonEnvironment.ChunkSize = 32768; // Set 512 MB as a maximum request length. EAUploadModule.CommonEnvironment.MaxRequestLength = 524288; base.Init(); } ... }
' Global.asax.vb Public Class Global Inherits System.Web.HttpApplication ... Public Overrides Sub Init() License.SerialKey = "..." EAUploadModule.CommonEnvironment.ChunkSize = 32768; ' Set 512 MB as a maximum request length. EAUploadModule.CommonEnvironment.MaxRequestLength = 524288 MyBase.Init End Sub ... End Class
